From: Jeremy Hylton Date: Tue, 2 Dec 2003 06:47:37 +0000 (+0000) Subject: A hack: Disable import of re, because sre doesn't compile right. X-Git-Tag: v2.3.3c1~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=26b3f119540d0a861052ac415dd3dfc697aabf53;p=thirdparty%2FPython%2Fcpython.git A hack: Disable import of re, because sre doesn't compile right. DON'T MERGE THIS CHANGE TO THE TRUNK. --- diff --git a/Lib/site.py b/Lib/site.py index e7b9369471b4..aad7357a46c4 100644 --- a/Lib/site.py +++ b/Lib/site.py @@ -91,7 +91,9 @@ 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"): - from distutils.util import get_platform +## from distutils.util import get_platform + def get_platform(): + return "linux-i686" s = "build/lib.%s-%.3s" % (get_platform(), sys.version) s = os.path.join(os.path.dirname(sys.path[-1]), s) sys.path.append(s)