another attempt to fix winservice issue
This commit is contained in:
2
VERSION
2
VERSION
@@ -1 +1 @@
|
||||
Version 2.00.0 (2012-07-23 16:19:51) dev
|
||||
Version 2.00.0 (2012-07-23 17:23:22) dev
|
||||
|
||||
@@ -92,6 +92,8 @@ class Web2pyService(Service):
|
||||
_winreg.CloseKey(h)
|
||||
dir = os.path.dirname(cls)
|
||||
os.chdir(dir)
|
||||
global_settings.gluon_parent = dir
|
||||
custom_import_install(dir)
|
||||
return True
|
||||
except:
|
||||
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__)
|
||||
web2py_path = iup(path)
|
||||
os.chdir(web2py_path)
|
||||
global_settings.gluon_parent = web2py_path
|
||||
custom_import_install(web2py_path)
|
||||
classstring = os.path.normpath(
|
||||
os.path.join(web2py_path,'gluon.winservice.Web2pyService'))
|
||||
if opt_file:
|
||||
|
||||
Reference in New Issue
Block a user