mirror of https://github.com/python/cpython
Take the basename of the script before concatenating it with the build dir.
This commit is contained in:
parent
fd267d998d
commit
fe55e86a0a
|
@ -52,7 +52,7 @@ class build_scripts (Command):
|
||||||
self.mkpath(self.build_dir)
|
self.mkpath(self.build_dir)
|
||||||
for script in self.scripts:
|
for script in self.scripts:
|
||||||
adjust = 0
|
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):
|
if not self.force and not newer(script, outfile):
|
||||||
self.announce("not copying %s (output up-to-date)" % script)
|
self.announce("not copying %s (output up-to-date)" % script)
|
||||||
|
|
Loading…
Reference in New Issue