From ef765ff73eabc69cebf1679cbb1e5ce8065aab47 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 16 Jun 2015 10:05:54 +0530 Subject: [PATCH] ... --- src/calibre/srv/tests/auth.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/calibre/srv/tests/auth.py b/src/calibre/srv/tests/auth.py index 1147d592e2..e56b06a5d0 100644 --- a/src/calibre/srv/tests/auth.py +++ b/src/calibre/srv/tests/auth.py @@ -7,7 +7,10 @@ __license__ = 'GPL v3' __copyright__ = '2015, Kovid Goyal ' import httplib, base64, urllib2, subprocess, os, cookielib -from distutils.spawn import find_executable +try: + from distutils.spawn import find_executable +except ImportError: # windows + find_executable = lambda x: None from calibre.srv.tests.base import BaseTest, TestServer from calibre.srv.routes import endpoint, Router