possibly fixed issue 1011
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.0.9 (2012-09-16 13:06:39) stable
|
Version 2.0.9 (2012-09-16 13:55:25) stable
|
||||||
|
|||||||
@@ -154,6 +154,8 @@ class Web2pyService(Service):
|
|||||||
def web2py_windows_service_handler(argv=None, opt_file='options'):
|
def web2py_windows_service_handler(argv=None, opt_file='options'):
|
||||||
path = os.path.dirname(__file__)
|
path = os.path.dirname(__file__)
|
||||||
web2py_path = up(path)
|
web2py_path = up(path)
|
||||||
|
if web2py_path.endswith('.zip'): # in case bianry distro 'library.zip'
|
||||||
|
web2py_path = os.path.dirname(web2py_path)
|
||||||
os.chdir(web2py_path)
|
os.chdir(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'))
|
||||||
|
|||||||
Reference in New Issue
Block a user