fix ResourceWarning about unclosed files in Py 3.2
[cython.git] / cython.py
old mode 100755 (executable)
new mode 100644 (file)
index f96c577..c8987bb
--- a/cython.py
+++ b/cython.py
@@ -2,5 +2,11 @@
 #   Cython -- Main Program, generic
 #
 
-from Cython.Compiler.Main import main
-main(command_line = 1)
+if __name__ == '__main__':
+
+    from Cython.Compiler.Main import main
+    main(command_line = 1)
+
+else:
+    # Void cython.* directives.
+    from Cython.Shadow import *