Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b2d62e40
Commit
b2d62e40
authored
Jun 18, 1995
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Obtain path from a resource (unless USE_BUILTIN_PATH is #defined)
parent
ed6a9c1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
Mac/Modules/config.c
Mac/Modules/config.c
+9
-2
No files found.
Mac/Modules/config.c
View file @
b2d62e40
...
...
@@ -142,7 +142,7 @@ getcopyright()
#ifndef PYTHONPATH
#ifdef macintosh
/* Mod by Jack: \n is now separator. */
#define PYTHONPATH ":\n:Lib\n:Lib:stdwin\n:Lib:test\n:Lib:mac"
#define PYTHONPATH ":\n:Lib\n:Lib:stdwin\n:Lib:test\n:Lib:mac
\n:PackedLib\n:PlugIns
"
#endif
/* macintosh */
#endif
/* !PYTHONPATH */
...
...
@@ -172,10 +172,17 @@ getpythonpath()
char
*
p
,
*
endp
;
int
newlen
;
extern
char
*
PyMac_GetPythonDir
();
extern
char
*
PyMac_GetScriptPath
();
#ifndef USE_BUILTIN_PATH
extern
char
*
PyMac_GetPythonPath
();
#endif
if
(
pythonpath
)
return
pythonpath
;
curwd
=
PyMac_GetPythonDir
();
#ifndef USE_BUILTIN_PATH
if
(
pythonpath
=
PyMac_GetPythonPath
(
curwd
)
)
return
pythonpath
;
printf
(
"Warning: No pythonpath resource found, using builtin default
\n
"
);
#endif
p
=
PYTHONPATH
;
endp
=
p
;
pythonpath
=
malloc
(
2
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment