mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
- Reorganized init code
- Fixed serious bug in code to get options from a resource
This commit is contained in:
parent
dc1c64a148
commit
01fbc68896
5 changed files with 63 additions and 45 deletions
|
@ -43,9 +43,9 @@ getpythonpath()
|
|||
char *curwd;
|
||||
char *p, *endp;
|
||||
int newlen;
|
||||
extern char *PyMac_GetPythonDir();
|
||||
staticforward char *PyMac_GetPythonDir();
|
||||
#ifndef USE_BUILTIN_PATH
|
||||
extern char *PyMac_GetPythonPath();
|
||||
staticforward char *PyMac_GetPythonPath();
|
||||
#endif
|
||||
|
||||
if ( pythonpath ) return pythonpath;
|
||||
|
@ -89,7 +89,7 @@ getpythonpath()
|
|||
/*
|
||||
** Open/create the Python Preferences file, return the handle
|
||||
*/
|
||||
short
|
||||
static short
|
||||
PyMac_OpenPrefFile()
|
||||
{
|
||||
AliasHandle handle;
|
||||
|
@ -142,7 +142,7 @@ PyMac_OpenPrefFile()
|
|||
/*
|
||||
** Return the name of the Python directory
|
||||
*/
|
||||
char *
|
||||
static char *
|
||||
PyMac_GetPythonDir()
|
||||
{
|
||||
static char name[256];
|
||||
|
@ -187,7 +187,7 @@ PyMac_GetPythonDir()
|
|||
}
|
||||
|
||||
#ifndef USE_BUILTIN_PATH
|
||||
char *
|
||||
static char *
|
||||
PyMac_GetPythonPath(dir)
|
||||
char *dir;
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue