mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Always run sys.prefix and sys.exec_prefix through 'os.path.normpath()'
before storing or using.
This commit is contained in:
parent
7c463ef362
commit
c27d800251
1 changed files with 4 additions and 4 deletions
|
@ -130,9 +130,9 @@ class Install (Command):
|
|||
# ape the behaviour of Python's configure script.
|
||||
|
||||
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:
|
||||
self.exec_prefix = sys.exec_prefix
|
||||
self.exec_prefix = os.path.normpath (sys.exec_prefix)
|
||||
|
||||
if self.install_lib is None:
|
||||
self.install_lib = \
|
||||
|
@ -247,10 +247,10 @@ class Install (Command):
|
|||
return the "relocated" installation directory."""
|
||||
|
||||
if use_exec:
|
||||
sys_prefix = sys.exec_prefix
|
||||
sys_prefix = os.path.normpath (sys.exec_prefix)
|
||||
my_prefix = self.exec_prefix
|
||||
else:
|
||||
sys_prefix = sys.prefix
|
||||
sys_prefix = os.path.normpath (sys.prefix)
|
||||
my_prefix = self.prefix
|
||||
|
||||
val = getattr (sysconfig, config_attr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue