import error

This commit is contained in:
j 2016-02-01 13:36:48 +05:30
parent ed70856172
commit ac38f928b4
1 changed files with 1 additions and 1 deletions

View File

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