On Aug 27, 2009, at 7:16 AM, ctalley wrote: > Thanks guys. Yarko, you are nothing if not prolific - all I ever > wanted to know and more. :-) > > I just felt like there must be some mechanism to tell python where to > find files from the command prompt short of typing the entire path and > that I was missing something. I didn't really think pythonpath or > sys.path were the right answer, but hey it was worth a shot. > > But this does work (I tried it)... > python %web2pypath%\web2py.py --upgrade yes
It's a small distinction, but the expansion of the path here is being done by the command shell, not by python. By the time python sees it, it's simply the full path. > > The only catch is that web2pypath has to be in the "short name" format > (limit of 8 characters per path segment, no spaces, etc.). > > So in my case, this... > > C:\Documents and Settings\user\My Documents\w2p\web2py source\web2py > > looks like this... > > C:\DOCUME~1\user\MYDOCU~1\w2p\WEB2PY~2\web2py --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

