summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-05-25 20:05:52 (GMT)
committerGreg Ward <gward@python.net>2000-05-25 20:05:52 (GMT)
commitfe55e86a0a2e678f7f325f15c4607b56e80ebe61 (patch)
treefee856cb1216cb9b6e21af1eeca86f047d863b60
parentfd267d998d565f21ab876b6be53c2872463aff01 (diff)
downloadcpython-fe55e86a0a2e678f7f325f15c4607b56e80ebe61.zip
cpython-fe55e86a0a2e678f7f325f15c4607b56e80ebe61.tar.gz
cpython-fe55e86a0a2e678f7f325f15c4607b56e80ebe61.tar.bz2
Take the basename of the script before concatenating it with the build dir.
-rw-r--r--Lib/distutils/command/build_scripts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/command/build_scripts.py b/Lib/distutils/command/build_scripts.py
index 1829734..6467e65 100644
--- a/Lib/distutils/command/build_scripts.py
+++ b/Lib/distutils/command/build_scripts.py
@@ -52,7 +52,7 @@ class build_scripts (Command):
self.mkpath(self.build_dir)
for script in self.scripts:
adjust = 0
- outfile = os.path.join(self.build_dir, script)
+ outfile = os.path.join(self.build_dir, os.path.basename(script))
if not self.force and not newer(script, outfile):
self.announce("not copying %s (output up-to-date)" % script)