diff options
author | Dag Sverre Seljebotn <dagss@student.matnat.uio.no> | 2011-04-06 20:50:26 +0200 |
---|---|---|
committer | Dag Sverre Seljebotn <dagss@student.matnat.uio.no> | 2011-04-06 20:50:26 +0200 |
commit | c1d950ceca2320791df8db4ce11fce6c61666783 (patch) | |
tree | 8157376562fd7f5668bc6a977303ba4d0d045a60 /cython.py | |
parent | b0547937bdbf6f9d5856d29cdaadbb50a3f3b64d (diff) | |
download | cython-c1d950ceca2320791df8db4ce11fce6c61666783.tar.gz |
cython.py: Always put Cython in sys.path
Diffstat (limited to 'cython.py')
-rw-r--r-- | cython.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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) |