mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
SF patch #474590 -- RISC OS support
This commit is contained in:
parent
c6ac8a78f6
commit
e2ae77b8b8
33 changed files with 256 additions and 188 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue