From fe55e86a0a2e678f7f325f15c4607b56e80ebe61 Mon Sep 17 00:00:00 2001 From: Greg Ward Date: Thu, 25 May 2000 20:05:52 +0000 Subject: [PATCH] Take the basename of the script before concatenating it with the build dir. --- Lib/distutils/command/build_scripts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/distutils/command/build_scripts.py b/Lib/distutils/command/build_scripts.py index 18297348c045..6467e65b831d 100644 --- a/Lib/distutils/command/build_scripts.py +++ b/Lib/distutils/command/build_scripts.py @@ -52,7 +52,7 @@ def copy_scripts (self): 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)