Created
July 28, 2011 21:13
-
-
Save pamelafox/1112573 to your computer and use it in GitHub Desktop.
Deferred handler for Flask
This file contains hidden or 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
""" | |
deferred.py | |
Primary App Engine app handler | |
""" | |
import sys, os | |
package_dir = "packages" | |
# Allow unzipped packages to be imported | |
# from packages folder | |
sys.path.insert(0, package_dir) | |
# Append zip archives to path for zipimport | |
for filename in os.listdir(package_dir): | |
if filename.endswith((".zip", ".egg")): | |
sys.path.insert(0, "%s/%s" % (package_dir, filename)) | |
from google.appengine.ext.deferred.handler import main | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment