• 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
..
Makefile.in Loading commit data...
atof.c Loading commit data...
bltinmodule.c Loading commit data...
ceval.c Loading commit data...
cgensupport.c Loading commit data...
compile.c Loading commit data...
dup2.c Loading commit data...
errors.c Loading commit data...
fmod.c Loading commit data...
frozen.c Loading commit data...
frozenmain.c Loading commit data...
getargs.c Loading commit data...
getcompiler.c Loading commit data...
getcopyright.c Loading commit data...
getcwd.c Loading commit data...
getmtime.c Loading commit data...
getopt.c Loading commit data...
getplatform.c Loading commit data...
getversion.c Loading commit data...
graminit.c Loading commit data...
hypot.c Loading commit data...
import.c Loading commit data...
importdl.c Loading commit data...
importdl.h Loading commit data...
marshal.c Loading commit data...
memmove.c Loading commit data...
modsupport.c Loading commit data...
mystrtoul.c Loading commit data...
pyfpe.c Loading commit data...
pythonmain.c Loading commit data...
pythonrun.c Loading commit data...
sigcheck.c Loading commit data...
strdup.c Loading commit data...
strerror.c Loading commit data...
strtod.c Loading commit data...
structmember.c Loading commit data...
sysmodule.c Loading commit data...
thread.c Loading commit data...
thread_cthread.h Loading commit data...
thread_foobar.h Loading commit data...
thread_lwp.h Loading commit data...
thread_nt.h Loading commit data...
thread_os2.h Loading commit data...
thread_pthread.h Loading commit data...
thread_sgi.h Loading commit data...
thread_solaris.h Loading commit data...
traceback.c Loading commit data...