summaryrefslogtreecommitdiff
path: root/Lib/site.py
diff options
context:
space:
mode:
authorJesus Cea <jcea@jcea.es>2012-10-05 03:15:39 +0200
committerJesus Cea <jcea@jcea.es>2012-10-05 03:15:39 +0200
commit4791a242688167ffc4abb3b9f42d6cd9e877652e (patch)
tree62a566c811ae808f9dd7a7aa10e655d4d3aad56b /Lib/site.py
parentf1af7057208da7b3d15703645688fea971a4fb5e (diff)
downloadcpython-git-4791a242688167ffc4abb3b9f42d6cd9e877652e.tar.gz
#16135: Removal of OS/2 support (Python code partial cleanup)
Diffstat (limited to 'Lib/site.py')
-rw-r--r--Lib/site.py21
1 files changed, 1 insertions, 20 deletions
diff --git a/Lib/site.py b/Lib/site.py
index 0aaf46b62f..468d83efb9 100644
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -300,7 +300,7 @@ def getsitepackages(prefixes=None):
continue
seen.add(prefix)
- if sys.platform in ('os2emx', 'riscos'):
+ if sys.platform == 'riscos':
sitepackages.append(os.path.join(prefix, "Lib", "site-packages"))
elif os.sep == '/':
sitepackages.append(os.path.join(prefix, "lib",
@@ -329,23 +329,6 @@ def addsitepackages(known_paths, prefixes=None):
return known_paths
-def setBEGINLIBPATH():
- """The OS/2 EMX port has optional extension modules that do double duty
- as DLLs (and must use the .DLL file extension) for other extensions.
- The library search path needs to be amended so these will be found
- during module import. Use BEGINLIBPATH so that these are at the start
- of the library search path.
-
- """
- dllpath = os.path.join(sys.prefix, "Lib", "lib-dynload")
- libpath = os.environ['BEGINLIBPATH'].split(';')
- if libpath[-1]:
- libpath.append(dllpath)
- else:
- libpath[-1] = dllpath
- os.environ['BEGINLIBPATH'] = ';'.join(libpath)
-
-
def setquit():
"""Define new builtins 'quit' and 'exit'.
@@ -595,8 +578,6 @@ def main():
ENABLE_USER_SITE = check_enableusersite()
known_paths = addusersitepackages(known_paths)
known_paths = addsitepackages(known_paths)
- if sys.platform == 'os2emx':
- setBEGINLIBPATH()
setquit()
setcopyright()
sethelper()