Skip to content

Instantly share code, notes, and snippets.

@cgallemore
Created December 13, 2012 16:16
Show Gist options
  • Save cgallemore/4277553 to your computer and use it in GitHub Desktop.
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
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