fix C warnings about unused string constants
[cython.git] / cython.py
old mode 100644 (file)
new mode 100755 (executable)
index c8987bb..5dbd25c
--- a/cython.py
+++ b/cython.py
@@ -1,9 +1,18 @@
+#!/usr/bin/env python
+
 #
 #   Cython -- Main Program, generic
 #
 
 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)