cython.py: Always put Cython in sys.path
[cython.git] / cython.py
1 #
2 #   Cython -- Main Program, generic
3 #
4
5 if __name__ == '__main__':
6
7     import os
8     import sys
9     
10     # Make sure we import the right Cython
11     cythonpath, _ = os.path.split(os.path.realpath(__file__))
12     sys.path.insert(0, cythonpath)
13
14     from Cython.Compiler.Main import main
15     main(command_line = 1)
16
17 else:
18     # Void cython.* directives.
19     from Cython.Shadow import *