]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Take the basename of the script before concatenating it with the build dir.
authorGreg Ward <gward@python.net>
Thu, 25 May 2000 20:05:52 +0000 (20:05 +0000)
committerGreg Ward <gward@python.net>
Thu, 25 May 2000 20:05:52 +0000 (20:05 +0000)
Lib/distutils/command/build_scripts.py

index 18297348c045402ce38a579f6559434f76624de8..6467e65b831df620c4e35561a58847a00bb2a1ef 100644 (file)
@@ -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)