[issue15020] default value for progname in pythonrun.c should be python3 for Python 3

2012-07-05 Thread Joshua Cogliati
Joshua Cogliati added the comment: > Joshua, if you are embedding Python, why don't you simply call Py_SetPath to > set the search path appropriately? Or is it not enough? (I've lost memory of > the mazy details of how we calculate paths :-S). Setting Py_SetPath manua

[issue15020] default value for progname in pythonrun.c should be python3 for Python 3

2012-07-05 Thread Joshua Cogliati
Joshua Cogliati added the comment: > Joshua: what command did you run under strace? A program I created that embeds python3. I could create a minimum piece of code that triggered the bug if needed. > Maybe it would be better to use L"python3.2" for Python 3.2 and L"pyt

[issue15020] default value for progname in pythonrun.c should be python3 for Python 3

2012-06-13 Thread Joshua Cogliati
Changes by Joshua Cogliati : -- title: Poor default value for progname in pythonrun.c -> default value for progname in pythonrun.c should be python3 for Python 3 ___ Python tracker <http://bugs.python.org/issu

[issue15020] Poor default value for progname

2012-06-06 Thread Joshua Cogliati
Joshua Cogliati added the comment: Here is a part of an strace where Python fails to find python3: (This would work if progname=L"python3" ) ... 23249 stat("/opt/python/3.2.2.3/bin/python", 0x7fff2881cbf0) = -1 ENOENT (No such file or directory) 23249 readlink("/usr

[issue15020] Poor default value for progname

2012-06-06 Thread Joshua Cogliati
New submission from Joshua Cogliati : In Python/pythonrun.c the following definition exists: static wchar_t *progname = L"python"; 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, and