another attempt to fix winservice issue
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.00.0 (2012-07-23 16:19:51) dev
|
Version 2.00.0 (2012-07-23 17:23:22) dev
|
||||||
|
|||||||
+2
-2
@@ -92,6 +92,8 @@ class Web2pyService(Service):
|
|||||||
_winreg.CloseKey(h)
|
_winreg.CloseKey(h)
|
||||||
dir = os.path.dirname(cls)
|
dir = os.path.dirname(cls)
|
||||||
os.chdir(dir)
|
os.chdir(dir)
|
||||||
|
global_settings.gluon_parent = dir
|
||||||
|
custom_import_install(dir)
|
||||||
return True
|
return True
|
||||||
except:
|
except:
|
||||||
self.log("Can't change to web2py working path; server is stopped")
|
self.log("Can't change to web2py working path; server is stopped")
|
||||||
@@ -151,8 +153,6 @@ def web2py_windows_service_handler(argv=None, opt_file='options'):
|
|||||||
path = os.path.dirname(__file__)
|
path = os.path.dirname(__file__)
|
||||||
web2py_path = iup(path)
|
web2py_path = iup(path)
|
||||||
os.chdir(web2py_path)
|
os.chdir(web2py_path)
|
||||||
global_settings.gluon_parent = web2py_path
|
|
||||||
custom_import_install(web2py_path)
|
|
||||||
classstring = os.path.normpath(
|
classstring = os.path.normpath(
|
||||||
os.path.join(web2py_path,'gluon.winservice.Web2pyService'))
|
os.path.join(web2py_path,'gluon.winservice.Web2pyService'))
|
||||||
if opt_file:
|
if opt_file:
|
||||||
|
|||||||
Reference in New Issue
Block a user