From: Dag Sverre Seljebotn Date: Wed, 6 Apr 2011 18:50:26 +0000 (+0200) Subject: cython.py: Always put Cython in sys.path X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c1d950ceca2320791df8db4ce11fce6c61666783;p=cython.git cython.py: Always put Cython in sys.path --- diff --git a/cython.py b/cython.py index c8987bbc..cf07a8bc 100644 --- a/cython.py +++ b/cython.py @@ -4,6 +4,13 @@ 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)