summaryrefslogtreecommitdiffstats
path: root/Lib/site.py
diff options
context:
space:
mode:
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>2002-02-24 05:32:32 (GMT)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>2002-02-24 05:32:32 (GMT)
commit5cef57131fc02de55133e4eafdee27fb76456bb8 (patch)
treed22cd58c3f46b5c3564d283eeb8965197b15bb93 /Lib/site.py
parent75a8e65873f8c73f27f353b30bb1de5aceb6b74c (diff)
downloadcpython-5cef57131fc02de55133e4eafdee27fb76456bb8.zip
cpython-5cef57131fc02de55133e4eafdee27fb76456bb8.tar.gz
cpython-5cef57131fc02de55133e4eafdee27fb76456bb8.tar.bz2
OS/2 EMX port Library and regression test changes:
Lib/ os.py os2emxpath.py // added - OS/2 EMX specific path manipulation routines popen2.py site.py Lib/test/ test_fcntl.py test_longexp.py
Diffstat (limited to 'Lib/site.py')
-rw-r--r--Lib/site.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/site.py b/Lib/site.py
index c25f211..fee13f8 100644
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -164,7 +164,9 @@ if sys.exec_prefix != sys.prefix:
prefixes.append(sys.exec_prefix)
for prefix in prefixes:
if prefix:
- if os.sep == '/':
+ if sys.platform == 'os2emx':
+ sitedirs = [os.path.join(prefix, "Lib", "site-packages")]
+ elif os.sep == '/':
sitedirs = [os.path.join(prefix,
"lib",
"python" + sys.version[:3],