summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-09-03 23:12:18 (GMT)
committerGuido van Rossum <guido@python.org>1997-09-03 23:12:18 (GMT)
commitdc5d07d952ed06dcd1fda44737e799a7095e9a01 (patch)
tree6991529ab8ed8f12b2af6bcd7dc0c96ffa75cc0b /Lib
parent2b3fd76cc7599630df68444a7a96e97fddd5c0fb (diff)
downloadcpython-dc5d07d952ed06dcd1fda44737e799a7095e9a01.zip
cpython-dc5d07d952ed06dcd1fda44737e799a7095e9a01.tar.gz
cpython-dc5d07d952ed06dcd1fda44737e799a7095e9a01.tar.bz2
Different test for Unix -- rely on os.sep instead of sys.platform.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/site.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/site.py b/Lib/site.py
index 60a2208..23934c9 100644
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -95,14 +95,14 @@ if sys.exec_prefix != sys.prefix:
prefixes.append(sys.exec_prefix)
for prefix in prefixes:
if prefix:
- if sys.platform[:3] in ('win', 'mac'):
- sitedirs = [prefix]
- else:
+ if os.sep == '/':
sitedirs = [os.path.join(prefix,
"lib",
"python" + sys.version[:3],
"packages"),
os.path.join(prefix, "lib", "site-python")]
+ else:
+ sitedirs = [prefix]
for sitedir in sitedirs:
if os.path.isdir(sitedir):
addsitedir(sitedir)