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
ba8016a7
Commit
ba8016a7
authored
May 12, 1997
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Another change suggested by Donn Cave -- forget "step 5", which
searches /usr/local, /usr and /.
parent
3e2ae83f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
21 deletions
+2
-21
Modules/getpath.c
Modules/getpath.c
+2
-21
No files found.
Modules/getpath.c
View file @
ba8016a7
...
...
@@ -106,9 +106,6 @@ PERFORMANCE OF THIS SOFTWARE.
* PREFIX and EXEC_PREFIX. These are supplied by the Makefile but can be
* passed in as options to the configure script.
*
* Step 5. Search some `standard' directories, namely: /usr/local, /usr,
* then finally /.
*
* That's it!
*
* Well, almost. Once we have determined prefix and exec_prefix, the
...
...
@@ -153,8 +150,6 @@ PERFORMANCE OF THIS SOFTWARE.
#define LANDMARK "string.py"
#endif
static
char
*
std_dirs
[]
=
{
"/usr/local/"
,
"/usr/"
,
"/"
,
NULL
};
static
char
prefix
[
MAXPATHLEN
+
1
];
static
char
exec_prefix
[
MAXPATHLEN
+
1
];
static
char
*
module_search_path
=
NULL
;
...
...
@@ -266,14 +261,7 @@ search_for_prefix(argv0_path, home)
if
(
exists
(
prefix
))
return
1
;
/* Look at `standard' directories */
for
(
i
=
0
;
std_dirs
[
i
];
i
++
)
{
strcpy
(
prefix
,
std_dirs
[
i
]);
join
(
prefix
,
lib_python
);
join
(
prefix
,
LANDMARK
);
if
(
exists
(
prefix
))
return
1
;
}
/* Fail */
return
0
;
}
...
...
@@ -326,14 +314,7 @@ search_for_exec_prefix(argv0_path, home)
if
(
exists
(
exec_prefix
))
return
1
;
/* Look at `standard' directories */
for
(
i
=
0
;
std_dirs
[
i
];
i
++
)
{
strcpy
(
exec_prefix
,
std_dirs
[
i
]);
join
(
exec_prefix
,
lib_python
);
join
(
exec_prefix
,
"sharedmodules"
);
if
(
exists
(
exec_prefix
))
return
1
;
}
/* Fail */
return
0
;
}
...
...
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