Created
December 13, 2012 16:16
-
-
Save cgallemore/4277553 to your computer and use it in GitHub Desktop.
Work around for appengine dev_appserver restart with virutalenv and python 2.7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For those on python27, looks like py27_optional is not being passed in (dev_appserver_import_hook.py:591) | |
if not FakeFile.IsFileAccessible(filename) | |
Simplest workaround is to change the method defaults from: | |
def IsFileAccessible(filename, normcase=os.path.normcase, py27_optional=False) | |
to: | |
def IsFileAccessible(filename, normcase=os.path.normcase, py27_optional=True) | |
# File is located at: | |
/google_appengine/google/appengine/tools/dev_appserver_import_hook.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment