Name
Py_SetProgramName
Synopsis
void Py_SetProgramName(char* name
)
Sets the program name, which Python scripts can access as
sys.argv[0]
. Must be called before calling
Py_Initialize
.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.