mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
RISCOS changes by dschwertberger.
This commit is contained in:
parent
4ba3d657ef
commit
d74fb6b12a
6 changed files with 64 additions and 24 deletions
|
@ -59,6 +59,12 @@ ImportError exception, it is silently ignored.
|
|||
|
||||
import sys, os
|
||||
|
||||
if os.sep==".":
|
||||
endsep = "/"
|
||||
else:
|
||||
endsep = "."
|
||||
|
||||
|
||||
def makepath(*paths):
|
||||
dir = os.path.join(*paths)
|
||||
return os.path.normcase(os.path.abspath(dir))
|
||||
|
@ -99,7 +105,7 @@ def addsitedir(sitedir):
|
|||
names = map(os.path.normcase, names)
|
||||
names.sort()
|
||||
for name in names:
|
||||
if name[-4:] == ".pth":
|
||||
if name[-4:] == endsep + "pth":
|
||||
addpackage(sitedir, name)
|
||||
|
||||
def addpackage(sitedir, name):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue