mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Python will now attempt (again) to create at least a minimal
preferences file if it is missing.
This commit is contained in:
parent
9119ccfadd
commit
41fa7ea719
3 changed files with 93 additions and 101 deletions
|
|
@ -75,8 +75,8 @@ strdup(char *src)
|
|||
|
||||
/* Return FSSpec of current application */
|
||||
|
||||
static OSErr
|
||||
current_process_location(FSSpec *applicationSpec)
|
||||
OSErr
|
||||
PyMac_process_location(FSSpec *applicationSpec)
|
||||
{
|
||||
ProcessSerialNumber currentPSN;
|
||||
ProcessInfoRec info;
|
||||
|
|
@ -155,7 +155,7 @@ get_application_name()
|
|||
static char appname[256];
|
||||
FSSpec appspec;
|
||||
|
||||
if (current_process_location(&appspec))
|
||||
if (PyMac_process_location(&appspec))
|
||||
return NULL;
|
||||
if (get_full_path(&appspec, appname))
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue