fixed path issue when starting web2py

This commit is contained in:
mdipierro
2015-12-25 22:56:13 -06:00
parent fabadcd21f
commit b6235249da
+4 -1
View File
@@ -3,7 +3,6 @@
import os
import sys
import gluon.widget
from multiprocessing import freeze_support
# import gluon.import_all ##### This should be uncommented for py2exe.py
@@ -17,6 +16,10 @@ os.chdir(path)
sys.path = [path] + [p for p in sys.path if not p == path]
# important that this import is after the os.chdir
import gluon.widget
# Start Web2py and Web2py cron service!
if __name__ == '__main__':
freeze_support()