Permalink
Browse files

fixed import bug

  • Loading branch information...
1 parent 233ede4 commit a8099ff45ae522246d8f1501abb18e75920a4fe5 @peterbe committed Nov 6, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 bin/send_pickled_messages.py
@@ -1,5 +1,10 @@
#!/usr/bin/env python
-import here
+try:
+ import here
+except ImportError:
+ import sys, os
+ sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
+ import here
import time
import cPickle

0 comments on commit a8099ff

Please sign in to comment.