Pull requests

#4 Merged
Repository
Deleted repository
Branch
default (c501796fd5c9)
Repository
petraszd
Branch
default

Fix position when add project to sys.path

Author
  1. MiCHiLU-old
Reviewers
Description

A path of project is added to the end of the sys.path with pytest-gae. But if dev_appserver, it is added to the first of sys.path.

This situation becomes problems.

If want to import the `tests` module that is in `my gae project` directory, it is imported from `webob_0_9` directory:

import tests
print tests
<module 'tests' from 'google_appengine/lib/webob_0_9/tests/__init__.py'>

As well, if want to import the `test` module that is in `my gae project` directory, it is imported from `python2.7` directory:

import test
print test
<module 'test' from '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/test/__init__.py'>

Thanks.

  • Learn about pull requests

Comments (0)