Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
title: Poor default value for progname - Poor default value for progname in
pythonrun.c
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15020
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +loewis
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15020
___
___
New submission from Joshua Cogliati jrinc...@gmail.com:
In Python/pythonrun.c the following definition exists:
static wchar_t *progname = Lpython;
This is then used by Py_GetProgramName which is used by calculate_path in
Modules/getpath.c
Since in python 3, the default executable is python3,
Joshua Cogliati jrinc...@gmail.com added the comment:
Here is a part of an strace where Python fails to find python3:
(This would work if progname=Lpython3 )
...
23249 stat(/opt/python/3.2.2.3/bin/python, 0x7fff2881cbf0) = -1 ENOENT
(No such file or directory)
23249