summaryrefslogtreecommitdiffstats
path: root/Python/strtod.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-04-25 15:38:31 (GMT)
committerGuido van Rossum <guido@python.org>1997-04-25 15:38:31 (GMT)
commitc474deaaf63deb633bf9bc951c8cc1cd5d107eda (patch)
tree11e4d355d5d8d5a03a14a5df5349546943e1166a /Python/strtod.c
parent4246edda7c055359443ec44a0b862310042d3a1d (diff)
downloadcpython-c474deaaf63deb633bf9bc951c8cc1cd5d107eda.zip
cpython-c474deaaf63deb633bf9bc951c8cc1cd5d107eda.tar.gz
cpython-c474deaaf63deb633bf9bc951c8cc1cd5d107eda.tar.bz2
Expand one level of symbolic link in sys.argv[0] before inserting its
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).
Diffstat (limited to 'Python/strtod.c')
0 files changed, 0 insertions, 0 deletions