From 34a71b5e2dacf9a772ec4f02e50cb4a0d4b806ed Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sun, 16 Sep 2012 13:55:29 -0500 Subject: [PATCH] possibly fixed issue 1011 --- VERSION | 2 +- gluon/winservice.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index c6473994..0c324fbc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.0.9 (2012-09-16 13:06:39) stable +Version 2.0.9 (2012-09-16 13:55:25) stable diff --git a/gluon/winservice.py b/gluon/winservice.py index 48b58e91..27426c8b 100644 --- a/gluon/winservice.py +++ b/gluon/winservice.py @@ -154,6 +154,8 @@ class Web2pyService(Service): def web2py_windows_service_handler(argv=None, opt_file='options'): path = os.path.dirname(__file__) 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) classstring = os.path.normpath( os.path.join(web2py_path,'gluon.winservice.Web2pyService'))