• Guido van Rossum's avatar
    Expand one level of symbolic link in sys.argv[0] before inserting its · c474deaa
    Guido van Rossum yazdı
    dirname in sys.path.  This means that you can create a symbolic link
    foo in /usr/local/bin pointing to /usr/yourname/src/foo/foo.py, and
    then invoking foo will insert /usr/yourname/src/foo in sys.path, not
    /usr/local/bin.  This makes it easier to have multifile programs
    (before, the program would have to do an os.readlink(sys.argv[0])
    itself and insert the resulting directory in sys.path -- Grail does
    this).
    
    Note that the expansion is only used for sys.path; sys.argv[0] is
    still the original, unadorned filename (/usr/local/bin/foo in the
    example).
    c474deaa
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
Parser Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.hgtags Loading commit data...
BUGS Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
TODO Loading commit data...
acconfig.h Loading commit data...
config.h.in Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...