Permalink
Browse files

fixed continuously adding a path to sys.path

  • Loading branch information...
1 parent 2541cdb commit 59a0fe8441eab2a55c10272d2694b1dbe09a9bc9 Homeless committed Jun 24, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 gae/boot.py
View
@@ -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 59a0fe8

Please sign in to comment.