Files
cpython/Python
Guido van Rossum c474deaaf6 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).
1997-04-25 15:38:31 +00:00
..
1996-10-25 14:44:06 +00:00
1994-08-29 10:43:12 +00:00
1997-04-11 20:44:04 +00:00
1996-10-25 14:44:06 +00:00
1996-10-25 14:44:06 +00:00
1996-10-25 14:44:06 +00:00
1997-01-20 18:34:55 +00:00
1996-08-29 18:10:41 +00:00
1997-03-14 04:32:50 +00:00
1997-03-14 04:32:50 +00:00
1997-04-02 05:28:38 +00:00
1996-08-29 18:10:30 +00:00
1996-08-19 22:12:39 +00:00
1996-12-30 16:17:54 +00:00
1996-12-30 16:17:54 +00:00