Waldemar Kornewald avatar Waldemar Kornewald committed 681ca57

fixed path detection of GAE SDK

Comments (0)

Files changed (2)

                  os.path.join(COMMON_DIR, '.google_appengine'),
                  '/usr/local/google_appengine',
                  '/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine']
-        for path in os.environ.get('PATH', '').replace(';', ':').split(':'):
+        for path in os.environ.get('PATH', '').split(os.pathsep):
             path = path.rstrip(os.sep)
             if path.endswith('google_appengine'):
                 paths.append(path)

management/commands/runserver.py

     # Pass the application specific datastore location to the server.
     p = connection._get_paths()
     if '--datastore_path' not in args:
-        args.extend(["--datastore_path", p[0]])
+        args.extend(['--datastore_path', p[0]])
     if '--history_path' not in args:
-        args.extend(["--history_path", p[1]])
+        args.extend(['--history_path', p[1]])
 
     # Reset logging level to INFO as dev_appserver will spew tons of debug logs
     logging.getLogger().setLevel(logging.INFO)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.