From b6235249dac3ee0e348ba0b2400fc262899c1c70 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Fri, 25 Dec 2015 22:56:13 -0600 Subject: [PATCH] fixed path issue when starting web2py --- web2py.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web2py.py b/web2py.py index ad884744..516427f7 100755 --- a/web2py.py +++ b/web2py.py @@ -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()