+#!/usr/bin/env python
+
#
-# Pyrex -- Main Program, generic
+# Cython -- Main Program, generic
#
-from Pyrex.Compiler.Main import main
-main(command_line = 1)
+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)
+
+else:
+ # Void cython.* directives.
+ from Cython.Shadow import *