What steps will reproduce the problem?
1. Windows XP
2. SDK is installed at C:\Software\Google\google_appengine
3. App Engine Patch dir is D:\Download\app-engine-patch-sample
4. Run manage.py
What is the expected output? What do you see instead?
manage.py reports error:
D:\Download\app-engine-patch-sample> manage.py runserver
The Google App Engine SDK could not be found!
Visit http://code.google.com/p/app-engine-patch/ for installation
instructions.
What version of the product are you using? On what operating system?
* app-engine-patch-1.1RC.zip
* Windows XP SP3
Please provide any additional information below.
I checked the source code, common/appenginepatch/aecmd.py. It gets path
from os.environ and replace ";" with ":"
Line 26: for path in os.environ.get('PATH', '').replace(';',
':').split(':'):
But for windows, "PATH" may include ":" after driver letter, such as
"C:\Software\Google\google_appengine". After the split, driver letter will
be lost.
At line 36, os.path.realpath returns the canonical path of the path, but it
uses the current working dir's driver letter("D" in this case). So the
final sdk_path is "D:\Software\Google\google_appengine".
I changed the line 26 as following and it works:
for path in os.environ.get('PATH', '').split(os.pathsep):
Original issue reported on code.google.com by suzheng...@gmail.com on 22 Aug 2009 at 1:52
Original issue reported on code.google.com by
suzheng...@gmail.com
on 22 Aug 2009 at 1:52