summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDag Sverre Seljebotn <dagss@student.matnat.uio.no>2011-04-06 20:45:51 +0200
committerDag Sverre Seljebotn <dagss@student.matnat.uio.no>2011-04-06 20:47:09 +0200
commitb0547937bdbf6f9d5856d29cdaadbb50a3f3b64d (patch)
treeb292cfeb2beb8acbba5db744fa0b05bd8199dde2 /bin
parent2ae93ebcf0ee45c3a7ad2e77a41a33fda6ca4c74 (diff)
downloadcython-b0547937bdbf6f9d5856d29cdaadbb50a3f3b64d.tar.gz
Revert "BUG Make sure bin/cython imports the right Cython module"
This reverts commit af902b506b2162d6d8bff345be4d060398c8a45b. As I was told: Please remember that 'bin/cython' is the script that gets installed in '/usr/bin'. Why should '/usr' git injected in sys.path?
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cygdb6
-rwxr-xr-xbin/cython8
2 files changed, 0 insertions, 14 deletions
diff --git a/bin/cygdb b/bin/cygdb
index a980f6a02..7f2d57f5d 100755
--- a/bin/cygdb
+++ b/bin/cygdb
@@ -1,12 +1,6 @@
#!/usr/bin/env python
import sys
-import os
-
-# Make sure we import the right Cython
-binpath, _ = os.path.split(os.path.realpath(__file__))
-cythonpath, _ = os.path.split(binpath)
-sys.path.insert(0, cythonpath)
from Cython.Debugger import Cygdb as cygdb
diff --git a/bin/cython b/bin/cython
index 094beed47..2acad0d0e 100755
--- a/bin/cython
+++ b/bin/cython
@@ -4,13 +4,5 @@
# Cython -- Main Program, Unix
#
-import os
-import sys
-
-# Make sure we import the right Cython
-binpath, _ = os.path.split(os.path.realpath(__file__))
-cythonpath, _ = os.path.split(binpath)
-sys.path.insert(0, cythonpath)
-
from Cython.Compiler.Main import main
main(command_line = 1)