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
..
atof.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
bltinmodule.c Keep gcc -Wall and Microsoft VC happy. 1997-04-11 20:37:35 +00:00
ceval.c Clarify error message for unexpected keyword parameter. 1997-03-10 22:58:23 +00:00
cgensupport.c Keep gcc -Wall and Microsoft VC happy. 1997-04-11 20:37:35 +00:00
compile.c Tweaks to keep the Microsoft compiler quier. 1997-04-09 19:24:53 +00:00
dup2.c MPW changes 1994-08-29 10:43:12 +00:00
errors.c Keep Microsoft VC happy. 1997-04-11 20:44:04 +00:00
fmod.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
frozen.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
frozenmain.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
getargs.c Keep gcc -Wall and Microsoft VC happy. 1997-04-11 20:37:35 +00:00
getcompiler.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
getcopyright.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
getcwd.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
getmtime.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
getopt.c (Jack:) Don't define TRUE and FALSE if already defined. 1997-04-11 19:19:46 +00:00
getplatform.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
getversion.c get build info from elsewhere 1997-01-20 18:34:55 +00:00
graminit.c OK, ready to make 'assert' a keyword (instead of '__assert__'). 1997-04-16 00:34:46 +00:00
hypot.c *** empty log message *** 1996-08-29 18:10:41 +00:00
import.c Keep gcc -Wall and Microsoft VC happy. 1997-04-11 20:37:35 +00:00
importdl.c (Jack:) On the Mac, don't automatically enable dynamic loading. 1997-04-11 19:22:06 +00:00
importdl.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
Makefile.in Changes for Lee Busby's SIGFPE patch set. 1997-02-14 22:58:07 +00:00
marshal.c New form of PyFPE_END_PROTECT macro. 1997-03-14 04:32:50 +00:00
memmove.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
modsupport.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
mystrtoul.c Tweaks to keep the Microsoft compiler quier. 1997-04-09 19:24:53 +00:00
pyfpe.c New form of PyFPE_END_PROTECT macro. 1997-03-14 04:32:50 +00:00
pythonmain.c Allow mac user to set "command line flags" by option-starting python. 1995-07-29 13:53:59 +00:00
pythonrun.c Allow passing a .pyo file. 1997-04-02 05:28:38 +00:00
sigcheck.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
strdup.c Needed more includes... 1996-08-29 18:10:30 +00:00
strerror.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
strtod.c Always include config.h 1996-08-19 22:12:39 +00:00
structmember.c Tweaks to keep the Microsoft compiler quier. 1997-04-09 19:24:53 +00:00
sysmodule.c Expand one level of symbolic link in sys.argv[0] before inserting its 1997-04-25 15:38:31 +00:00
thread.c Rename DEBUG macro to Py_DEBUG 1996-12-30 16:17:54 +00:00
thread_cthread.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
thread_foobar.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
thread_lwp.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
thread_nt.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
thread_os2.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
thread_pthread.h Working semaphore implementation by Sjoerd. 1997-01-17 21:06:41 +00:00
thread_sgi.h Rename DEBUG macro to Py_DEBUG 1996-12-30 16:17:54 +00:00
thread_solaris.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
traceback.c Keep gcc -Wall and Microsoft VC happy. 1997-04-11 20:37:35 +00:00