Commit dab5ac36 authored by Martín Gaitán's avatar Martín Gaitán

applying DRY on cython vs Cython

import the ``cython`` as module (no run  as a program)::

   >>> import cython

do the same than::

   >>> import Cython

But the same code was repeated in both places.
parent 99a593e0
...@@ -8,7 +8,7 @@ if __name__ == '__main__': ...@@ -8,7 +8,7 @@ if __name__ == '__main__':
import os import os
import sys import sys
# Make sure we import the right Cython # Make sure we import the right Cython
cythonpath, _ = os.path.split(os.path.realpath(__file__)) cythonpath, _ = os.path.split(os.path.realpath(__file__))
sys.path.insert(0, cythonpath) sys.path.insert(0, cythonpath)
...@@ -17,7 +17,4 @@ if __name__ == '__main__': ...@@ -17,7 +17,4 @@ if __name__ == '__main__':
main(command_line = 1) main(command_line = 1)
else: else:
# Void cython.* directives. from Cython import *
from Cython.Shadow import * \ No newline at end of file
## and bring in the __version__
from Cython import __version__
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment