From d95510a71fb55ffefcae8f1d772304f1af29f954 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Fri, 15 Feb 2013 18:58:34 +0200 Subject: [PATCH] Enable PREFIX for the last missing type. --- builder_install.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/builder_install.py b/builder_install.py index 002ff25ba..39be2a93c 100755 --- a/builder_install.py +++ b/builder_install.py @@ -40,8 +40,9 @@ def do_install(datafilename): def install_data(d): for i in d.data: fullfilename = i[0] - outfilename = i[1] - outdir = os.path.split(outfilename)[0] + outfilerel = i[1] + outdir = os.path.join(d.prefix, os.path.split(outfilerel)[0]) + outfilename = os.path.join(outdir, os.path.split(outfilerel)[1]) os.makedirs(outdir, exist_ok=True) print('Installing %s to %s.' % (fullfilename, outdir)) shutil.copyfile(fullfilename, outfilename)