import error

This commit is contained in:
j 2016-02-01 13:36:48 +05:30
parent ed70856172
commit ac38f928b4

View file

@ -451,8 +451,8 @@ def check_pidfile(pid):
return check_pid(pid) return check_pid(pid)
def ctl(*args): def ctl(*args):
if sys.platform == 'win32':
import settings import settings
if sys.platform == 'win32':
platform_win32 = os.path.normpath(os.path.join(settings.base_dir, '..', 'platform_win32')) platform_win32 = os.path.normpath(os.path.join(settings.base_dir, '..', 'platform_win32'))
python = os.path.join(platform_win32, 'pythonw.exe') python = os.path.join(platform_win32, 'pythonw.exe')
cmd = [python, 'oml'] + list(args) cmd = [python, 'oml'] + list(args)