]> granicus.if.org Git - python/commitdiff
Repair operator error.
authorJeremy Hylton <jeremy@alum.mit.edu>
Fri, 18 Jul 2003 17:45:33 +0000 (17:45 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Fri, 18 Jul 2003 17:45:33 +0000 (17:45 +0000)
Lib/site.py

index 3e93a07e5244c7791971917e1f54b3378367d04b..788a94a216532e800109b2311c72ef33e5d00621 100644 (file)
@@ -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