Enable PREFIX for the last missing type.

pull/15/head
Jussi Pakkanen 12 years ago
parent ae23feb36e
commit d95510a71f
  1. 5
      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)

Loading…
Cancel
Save