mirror of https://github.com/python/cpython
Repair operator error.
This commit is contained in:
parent
bdf3b509ed
commit
6d58bf69ee
11
Lib/site.py
11
Lib/site.py
|
@ -91,16 +91,11 @@ del dir, dircase, L
|
||||||
# using the -S option for Python. See http://www.python.org/sf/586680
|
# using the -S option for Python. See http://www.python.org/sf/586680
|
||||||
if (os.name == "posix" and sys.path and
|
if (os.name == "posix" and sys.path and
|
||||||
os.path.basename(sys.path[-1]) == "Modules"):
|
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)
|
s = os.path.join(os.path.dirname(sys.path[-1]), s)
|
||||||
sys.path.append(s)
|
sys.path.append(s)
|
||||||
##if (os.name == "posix" and sys.path and
|
del get_platform, s
|
||||||
## 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
|
|
||||||
|
|
||||||
def _init_pathinfo():
|
def _init_pathinfo():
|
||||||
global _dirs_in_sys_path
|
global _dirs_in_sys_path
|
||||||
|
|
Loading…
Reference in New Issue