summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2003-07-18 17:45:33 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2003-07-18 17:45:33 (GMT)
commit6d58bf69eee6f3104e633cf8ee48fcbb0b0c12a5 (patch)
treeab924d54191cd143810fbc8872cc861b24a25a9c
parentbdf3b509ed9f131d3c868d6097f8e02c8a9d554e (diff)
downloadcpython-6d58bf69eee6f3104e633cf8ee48fcbb0b0c12a5.zip
cpython-6d58bf69eee6f3104e633cf8ee48fcbb0b0c12a5.tar.gz
cpython-6d58bf69eee6f3104e633cf8ee48fcbb0b0c12a5.tar.bz2
Repair operator error.
-rw-r--r--Lib/site.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/Lib/site.py b/Lib/site.py
index 3e93a07..788a94a 100644
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -91,16 +91,11 @@ del dir, dircase, L
# using the -S option for Python. See http://www.python.org/sf/586680
if (os.name == "posix" and sys.path and
os.path.basename(sys.path[-1]) == "Modules"):
- s = "build/lib.%s-%.3s" % ("linux-i686", sys.version)
+ from distutils.util import get_platform
+ s = "build/lib.%s-%.3s" % (get_platform(), sys.version)
s = os.path.join(os.path.dirname(sys.path[-1]), s)
sys.path.append(s)
-##if (os.name == "posix" and sys.path and
-## os.path.basename(sys.path[-1]) == "Modules"):
-## from distutils.util import get_platform
-## s = "build/lib.%s-%.3s" % (get_platform(), sys.version)
-## s = os.path.join(os.path.dirname(sys.path[-1]), s)
-## sys.path.append(s)
-## del get_platform, s
+ del get_platform, s
def _init_pathinfo():
global _dirs_in_sys_path