Suppose you: $ mkdir foo $ cd foo $ wget http://mdp.cti.depaul.edu/examples/static/web2py_src.zip $ unzip web2py_src.zip
That leaves you with web2py in the web2py subdir. If you then: $ python web2py/web2py.py Traceback (most recent call last): File "web2py/web2py.py", line 7, in <module> from gluon.widget import start File "/home/witr/Projects/ijslog/web2py/gluon/widget.py", line 28, in <module> from gluon.main import HttpServer, save_password File "/home/witr/Projects/ijslog/web2py/gluon/main.py", line 77, in <module> web2py_version = open(os.path.join(web2py_path, 'VERSION'), 'r').read() IOError: [Errno 2] No such file or directory: '/home/witr/Projects/ ijslog/VERSION' That seems like an overreaction. This specific problem can be easily solved in main.py with this: web2py_path = os.path.realpath(os.path.dirname(sys.argv[0])) But then the problem shows up elsewhere. So, is it a fundamental design principle that web2py must be run in CWD or can/should this be fixed? It seems that if web2py were packaged as part of a larger system it would be nicer to not have this issue... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---