Merge branch 'bug-2225-fix' into 'master'

Address ntpath bug with empty prefix

See merge request ita1024/waf!2215
This commit is contained in:
ita1024 2019-02-18 18:05:19 +00:00
commit 2af495bcad
1 changed files with 2 additions and 2 deletions

View File

@ -1054,7 +1054,7 @@ class inst(Task.Task):
def get_install_path(self, destdir=True):
"""
Returns the destination path where files will be installed, pre-pending `destdir`.
Relative paths will be interpreted relative to `PREFIX` if no `destdir` is given.
:rtype: string
@ -1062,7 +1062,7 @@ class inst(Task.Task):
if isinstance(self.install_to, Node.Node):
dest = self.install_to.abspath()
else:
dest = Utils.subst_vars(self.install_to, self.env)
dest = os.path.normpath(Utils.subst_vars(self.install_to, self.env))
if not os.path.isabs(dest):
dest = os.path.join(self.env.PREFIX, dest)
if destdir and Options.options.destdir: