Permalink
Browse files

cython.py: Always put Cython in sys.path

  • Loading branch information...
Dag Sverre Seljebotn
Dag Sverre Seljebotn committed Apr 6, 2011
1 parent b054793 commit c1d950ceca2320791df8db4ce11fce6c61666783
Showing with 7 additions and 0 deletions.
  1. +7 −0 cython.py
View
@@ -4,6 +4,13 @@
if __name__ == '__main__':
+ import os
+ import sys
+
+ # Make sure we import the right Cython
+ cythonpath, _ = os.path.split(os.path.realpath(__file__))
+ sys.path.insert(0, cythonpath)
+
from Cython.Compiler.Main import main
main(command_line = 1)

0 comments on commit c1d950c

Please sign in to comment.