Commit ac7c828e authored by Guido van Rossum's avatar Guido van Rossum

getprogramname --> Py_GetProgramName

parent 5558a7e0
...@@ -30,7 +30,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ...@@ -30,7 +30,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <tcl.h> #include <tcl.h>
#include <tk.h> #include <tk.h>
extern char *getprogramname (); extern char *Py_GetProgramName ();
/* Internal declarations from tkInt.h. */ /* Internal declarations from tkInt.h. */
#if (TK_MAJOR_VERSION*1000 + TK_MINOR_VERSION) >= 4001 #if (TK_MAJOR_VERSION*1000 + TK_MINOR_VERSION) >= 4001
...@@ -1234,11 +1234,11 @@ Tkinter_Create (self, args) ...@@ -1234,11 +1234,11 @@ Tkinter_Create (self, args)
char *className = NULL; char *className = NULL;
int interactive = 0; int interactive = 0;
baseName = strrchr (getprogramname (), '/'); baseName = strrchr (Py_GetProgramName (), '/');
if (baseName != NULL) if (baseName != NULL)
baseName++; baseName++;
else else
baseName = getprogramname (); baseName = Py_GetProgramName ();
className = "Tk"; className = "Tk";
if (!PyArg_ParseTuple (args, "|zssi", if (!PyArg_ParseTuple (args, "|zssi",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment