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()