Skip to content
Browse files

Merge pull request #4 from fabiant7t/master

sys.path problem (problem with long running app engine instances)
  • Loading branch information...
2 parents 2541cdb + 59a0fe8 commit e1ae5c0a16e6ee8a4cfd261655c1791a2d89cf36 Nikolaus Graf committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 gae/
4 gae/
@@ -3,7 +3,9 @@
import sys, os
root_dir = os.path.dirname(os.path.abspath(__file__))
-sys.path.insert(0, os.path.join(root_dir, 'lib'))
+lib_dir = os.path.join(root_dir, 'lib')
+if lib_dir not in sys.path:
+ sys.path.insert(0, lib_dir)
from main import app

0 comments on commit e1ae5c0

Please sign in to comment.
Something went wrong with that request. Please try again.