From: Guido van Rossum Date: Wed, 31 Jul 1996 19:51:15 +0000 (+0000) Subject: getprogramname --> Py_GetProgramName X-Git-Tag: v1.4b2~69 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32aa1a72b256cc8c4262bc9863eef9452fc1305c;p=python getprogramname --> Py_GetProgramName --- diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 83f9be533d..bbada358e8 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -30,7 +30,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include #include -extern char *getprogramname (); +extern char *Py_GetProgramName (); /* Internal declarations from tkInt.h. */ #if (TK_MAJOR_VERSION*1000 + TK_MINOR_VERSION) >= 4001 @@ -1234,11 +1234,11 @@ Tkinter_Create (self, args) char *className = NULL; int interactive = 0; - baseName = strrchr (getprogramname (), '/'); + baseName = strrchr (Py_GetProgramName (), '/'); if (baseName != NULL) baseName++; else - baseName = getprogramname (); + baseName = Py_GetProgramName (); className = "Tk"; if (!PyArg_ParseTuple (args, "|zssi",