SF patch #474590 -- RISC OS support

This commit is contained in:
Guido van Rossum 2001-10-24 20:42:55 +00:00
parent c6ac8a78f6
commit e2ae77b8b8
33 changed files with 256 additions and 188 deletions

View file

@ -59,11 +59,6 @@ ImportError exception, it is silently ignored.
import sys, os
if os.sep==".":
endsep = "/"
else:
endsep = "."
def makepath(*paths):
dir = os.path.abspath(os.path.join(*paths))
@ -129,7 +124,7 @@ def addsitedir(sitedir):
return
names.sort()
for name in names:
if name[-4:] == endsep + "pth":
if name[-4:] == os.extsep + "pth":
addpackage(sitedir, name)
if reset:
_dirs_in_sys_path = None