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
6cf0702a
Commit
6cf0702a
authored
Jan 24, 2001
by
Neil Schemenauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build now happens in toplevel directory, not Modules. Don't monkey with
VPATH.
parent
85515ad9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
Modules/getpath.c
Modules/getpath.c
+1
-12
No files found.
Modules/getpath.c
View file @
6cf0702a
...
...
@@ -270,21 +270,10 @@ search_for_prefix(char *argv0_path, char *home)
strcpy
(
prefix
,
argv0_path
);
joinpath
(
prefix
,
"Modules/Setup"
);
if
(
isfile
(
prefix
))
{
/* Check VPATH to see if argv0_path is in the build directory.
* Complication: the VPATH passed in is relative to the
* Modules build directory and points to the Modules source
* directory; we need it relative to the build tree and
* pointing to the source tree. Solution: chop off a leading
* ".." (but only if it's there -- it could be an absolute
* path) and chop off the final component (assuming it's
* "Modules").
*/
/* Check VPATH to see if argv0_path is in the build directory. */
vpath
=
VPATH
;
if
(
vpath
[
0
]
==
'.'
&&
vpath
[
1
]
==
'.'
&&
vpath
[
2
]
==
'/'
)
vpath
+=
3
;
strcpy
(
prefix
,
argv0_path
);
joinpath
(
prefix
,
vpath
);
reduce
(
prefix
);
joinpath
(
prefix
,
"Lib"
);
joinpath
(
prefix
,
LANDMARK
);
if
(
ismodule
(
prefix
))
...
...
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