Skip to content

Instantly share code, notes, and snippets.

@skorokithakis
Created January 9, 2011 18:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save skorokithakis/771899 to your computer and use it in GitHub Desktop.
Save skorokithakis/771899 to your computer and use it in GitHub Desktop.
Import zips and eggs for AppEngine.
import sys, os
package_dir = "packages"
sys.path.insert(0, package_dir)
for filename in os.listdir(package_dir):
if filename.endswith((".zip", ".egg")):
sys.path.insert(0, "%s/%s" % (package_dir, filename))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment