solved custom import issue?

This commit is contained in:
mdipierro
2012-07-23 16:19:54 -05:00
parent c0c23b8eb7
commit 349457057c
3 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.00.0 (2012-07-21 16:12:40) dev
Version 2.00.0 (2012-07-23 16:19:51) dev
+1 -1
View File
@@ -34,7 +34,7 @@ def deploy():
assert repo.bare == False
for i in form.vars.applications:
appsrc = os.path.join(os.getcwd(),'applications',i)
appsrc = os.path.join(apath(r=request),i)
appdest = os.path.join(osrepo,'wsgi',osname,'applications',i)
dir_util.copy_tree(appsrc,appdest)
#shutil.copytree(appsrc,appdest)
+7 -4
View File
@@ -90,7 +90,7 @@ class Web2pyService(Service):
cls = _winreg.QueryValue(h, 'PythonClass')
finally:
_winreg.CloseKey(h)
dir = os.path.dirname(cls)
dir = os.path.dirname(cls)
os.chdir(dir)
return True
except:
@@ -149,8 +149,12 @@ class Web2pyService(Service):
def web2py_windows_service_handler(argv=None, opt_file='options'):
path = os.path.dirname(__file__)
classstring = os.path.normpath(os.path.join(up(path),
'gluon.winservice.Web2pyService'))
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:
Web2pyService._exe_args_ = opt_file
win32serviceutil.HandleCommandLine(Web2pyService,
@@ -158,7 +162,6 @@ def web2py_windows_service_handler(argv=None, opt_file='options'):
win32serviceutil.HandleCommandLine(Web2pyService,
serviceClassString=classstring, argv=argv)
if __name__ == '__main__':
web2py_windows_service_handler()