summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-01-17 16:25:59 (GMT)
committerGreg Ward <gward@python.net>2000-01-17 16:25:59 (GMT)
commitc27d80025134ee2ae92557af3b9d6c5496004c88 (patch)
tree32f9030a352df33f1b3b68ea00b741e37341fabc
parent7c463ef36221d20ed508966e9ba0ff671944ebd6 (diff)
downloadcpython-c27d80025134ee2ae92557af3b9d6c5496004c88.zip
cpython-c27d80025134ee2ae92557af3b9d6c5496004c88.tar.gz
cpython-c27d80025134ee2ae92557af3b9d6c5496004c88.tar.bz2
Always run sys.prefix and sys.exec_prefix through 'os.path.normpath()'
before storing or using.
-rw-r--r--Lib/distutils/command/install.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/distutils/command/install.py b/Lib/distutils/command/install.py
index cd12f6f..6f5d671 100644
--- a/Lib/distutils/command/install.py
+++ b/Lib/distutils/command/install.py
@@ -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)