diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2003-07-18 17:45:33 +0000 |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2003-07-18 17:45:33 +0000 |
commit | 5c756ffa68edad9e667187fbd541023809234b74 (patch) | |
tree | 8b1af1914715049dbf64a57b1c5ed5462bfb6663 /Lib/site.py | |
parent | 0aefccd0b2a0556add86db433e54c2b2d12ec7aa (diff) | |
download | cpython-5c756ffa68edad9e667187fbd541023809234b74.tar.gz |
Repair operator error.
Diffstat (limited to 'Lib/site.py')
-rw-r--r-- | Lib/site.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/Lib/site.py b/Lib/site.py index 3e93a07e52..788a94a216 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 |