From a71c786f472d5c4f980e6e1188b580acfd9c6a20 Mon Sep 17 00:00:00 2001 From: Jeffrey Townsend Date: Fri, 12 Aug 2016 20:55:33 +0000 Subject: [PATCH] Modified to support absolute paths. --- tools/mkinstaller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/mkinstaller.py b/tools/mkinstaller.py index 28d090c6..51ea0577 100755 --- a/tools/mkinstaller.py +++ b/tools/mkinstaller.py @@ -129,7 +129,7 @@ class InstallerShar(object): for d in self.dirs: print "Copying %s -> %s..." % (d, self.work_dir) - shutil.copytree(d, os.path.join(self.work_dir, d)) + subprocess.check_call(["cp", "-R", d, self.work_dir]) with open(os.path.join(self.work_dir, 'installer.sh'), "w") as f: f.write(self.template) @@ -151,7 +151,7 @@ class InstallerShar(object): name, os.path.join(self.ONL, 'tools', 'scripts', 'sfx.sh.in'), 'installer.sh', - ] + [ os.path.basename(f) for f in self.files ] + self.dirs + ] + [ os.path.basename(f) for f in self.files ] + [ os.path.basename(d) for d in self.dirs ] subprocess.check_call(mkshar) os.chdir(cwd)