summaryrefslogtreecommitdiff
path: root/cython.py
diff options
context:
space:
mode:
Diffstat (limited to 'cython.py')
-rw-r--r--cython.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/cython.py b/cython.py
index c8987bbcf..cf07a8bcd 100644
--- a/cython.py
+++ b/cython.py
@@ -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)