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
c27d8002
Commit
c27d8002
authored
Jan 17, 2000
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always run sys.prefix and sys.exec_prefix through 'os.path.normpath()'
before storing or using.
parent
7c463ef3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Lib/distutils/command/install.py
Lib/distutils/command/install.py
+4
-4
No files found.
Lib/distutils/command/install.py
View file @
c27d8002
...
@@ -130,9 +130,9 @@ class Install (Command):
...
@@ -130,9 +130,9 @@ class Install (Command):
# ape the behaviour of Python's configure script.
# ape the behaviour of Python's configure script.
if
self
.
prefix
is
None
:
# user didn't override
if
self
.
prefix
is
None
:
# user didn't override
self
.
prefix
=
sys
.
prefix
self
.
prefix
=
os
.
path
.
normpath
(
sys
.
prefix
)
if
self
.
exec_prefix
is
None
:
if
self
.
exec_prefix
is
None
:
self
.
exec_prefix
=
sys
.
exec_prefix
self
.
exec_prefix
=
os
.
path
.
normpath
(
sys
.
exec_prefix
)
if
self
.
install_lib
is
None
:
if
self
.
install_lib
is
None
:
self
.
install_lib
=
\
self
.
install_lib
=
\
...
@@ -247,10 +247,10 @@ class Install (Command):
...
@@ -247,10 +247,10 @@ class Install (Command):
return the "relocated" installation directory."""
return the "relocated" installation directory."""
if
use_exec
:
if
use_exec
:
sys_prefix
=
sys
.
exec_prefix
sys_prefix
=
os
.
path
.
normpath
(
sys
.
exec_prefix
)
my_prefix
=
self
.
exec_prefix
my_prefix
=
self
.
exec_prefix
else
:
else
:
sys_prefix
=
sys
.
prefix
sys_prefix
=
os
.
path
.
normpath
(
sys
.
prefix
)
my_prefix
=
self
.
prefix
my_prefix
=
self
.
prefix
val
=
getattr
(
sysconfig
,
config_attr
)
val
=
getattr
(
sysconfig
,
config_attr
)
...
...
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