diff options
author | Fred Drake <fdrake@acm.org> | 2000-09-28 16:52:36 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-09-28 16:52:36 (GMT) |
commit | 38cb9f1f174415d3b37fbaeb5d152d65525839d2 (patch) | |
tree | e4dab6e52b796e35df535cb1f99718e4a119d5b2 /Lib/popen2.py | |
parent | b4e460ac4b5a5b7e72b0eb6e8d21af179464c3d7 (diff) | |
download | cpython-38cb9f1f174415d3b37fbaeb5d152d65525839d2.zip cpython-38cb9f1f174415d3b37fbaeb5d152d65525839d2.tar.gz cpython-38cb9f1f174415d3b37fbaeb5d152d65525839d2.tar.bz2 |
Convert all entries on sys.path to absolute paths, and also update the
__file__ attributes of already-imported modules to be absolute. This helps
robustify the interpreter against os.chdir() calls from the application.
Only remove setdefaultencoding() from sys if it exists; if this module is
run as a script (since there is a _test() function that gets run), it broke
because the script attempts to remove it again after the import of site
has already done so. This allows the module to be run as a script again.
makepath(): New function, standardizes all pathname normalization in one
place.
Diffstat (limited to 'Lib/popen2.py')
0 files changed, 0 insertions, 0 deletions