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 assert repo.bare == False
for i in form.vars.applications: 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) appdest = os.path.join(osrepo,'wsgi',osname,'applications',i)
dir_util.copy_tree(appsrc,appdest) dir_util.copy_tree(appsrc,appdest)
#shutil.copytree(appsrc,appdest) #shutil.copytree(appsrc,appdest)
+6 -3
View File
@@ -149,8 +149,12 @@ 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__)
classstring = os.path.normpath(os.path.join(up(path), web2py_path = iup(path)
'gluon.winservice.Web2pyService')) 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: if opt_file:
Web2pyService._exe_args_ = opt_file Web2pyService._exe_args_ = opt_file
win32serviceutil.HandleCommandLine(Web2pyService, win32serviceutil.HandleCommandLine(Web2pyService,
@@ -158,7 +162,6 @@ def web2py_windows_service_handler(argv=None, opt_file='options'):
win32serviceutil.HandleCommandLine(Web2pyService, win32serviceutil.HandleCommandLine(Web2pyService,
serviceClassString=classstring, argv=argv) serviceClassString=classstring, argv=argv)
if __name__ == '__main__': if __name__ == '__main__':
web2py_windows_service_handler() web2py_windows_service_handler()