]> granicus.if.org Git - python/commitdiff
Issue #15020: The program name used to search for Python's path is now "python3"...
authorAntoine Pitrou <solipsis@pitrou.net>
Thu, 5 Jul 2012 18:56:30 +0000 (20:56 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Thu, 5 Jul 2012 18:56:30 +0000 (20:56 +0200)
Misc/NEWS
Python/pythonrun.c

index 5adf15e1d35af9d45016c0aa9a5d328ec4b6a27c..563a7f098af7323b2a690fe4487d0c86af4a6ce2 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,9 @@ What's New in Python 3.2.4
 Core and Builtins
 -----------------
 
+- Issue #15020: The program name used to search for Python's path is now
+  "python3" under Unix, not "python".
+
 - Issue #15033: Fix the exit status bug when modules invoked using -m swith,
   return the proper failure return value (1). Patch contributed by Jeff Knupp.
 
index 5a96bae059ee99ad171cf46dcbe4e14dc8940f9f..460946804d2c222c066354059121351f8f523d81 100644 (file)
@@ -696,7 +696,11 @@ Py_EndInterpreter(PyThreadState *tstate)
     PyInterpreterState_Delete(interp);
 }
 
+#ifdef MS_WINDOWS
 static wchar_t *progname = L"python";
+#else
+static wchar_t *progname = L"python3";
+#endif
 
 void
 Py_SetProgramName(wchar_t *pn)