getprogramname --> Py_GetProgramName

This commit is contained in:
Guido van Rossum 1996-07-31 19:51:15 +00:00
parent 3823420ca4
commit 32aa1a72b2
1 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <tcl.h>
#include <tk.h>
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",