diff options
Diffstat (limited to 'Lib/site.py')
-rw-r--r-- | Lib/site.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Lib/site.py b/Lib/site.py index 86698df..e27174e 100644 --- a/Lib/site.py +++ b/Lib/site.py @@ -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 |