Skip to content

Commit fe55e86

Browse files
committed
Take the basename of the script before concatenating it with the build dir.
1 parent fd267d9 commit fe55e86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Lib/distutils/command/build_scripts.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def copy_scripts (self):
5252
self.mkpath(self.build_dir)
5353
for script in self.scripts:
5454
adjust = 0
55-
outfile = os.path.join(self.build_dir, script)
55+
outfile = os.path.join(self.build_dir, os.path.basename(script))
5656

5757
if not self.force and not newer(script, outfile):
5858
self.announce("not copying %s (output up-to-date)" % script)

0 commit comments

Comments
 (0)