[Python-checkins] python/dist/src/Misc NEWS,1.606,1.607

Skip Montanaro skip@pobox.com
Wed, 8 Jan 2003 09:38:17 -0600


 
 theller> + - sys.path[0], if it contains a directory name, is now always an
 theller> + absolute pathname.
I guess my next question is, why not make all paths absolute? (IOW, why is
sys.path[0] special?) Perhaps site.py should contain something like
 # guard against current directory changes outside of our control, as
 # when an application changes directory when Python is embedded.
 import sys, os
 sys.path = [os.path.abspath(p) for p in sys.path]
 del sys, os
Skip

AltStyle によって変換されたページ (->オリジナル) /