From c1d950ceca2320791df8db4ce11fce6c61666783 Mon Sep 17 00:00:00 2001 From: Dag Sverre Seljebotn Date: Wed, 6 Apr 2011 20:50:26 +0200 Subject: [PATCH] cython.py: Always put Cython in sys.path --- cython.py | 7 +++++++ 1 file changed, 7 insertions(+) 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) -- 2.26.2