diff --git a/buildlib/common.py b/buildlib/common.py index d8f5e97b..8beaeecc 100644 --- a/buildlib/common.py +++ b/buildlib/common.py @@ -128,7 +128,7 @@ class Builder: new_env["PATH"] = os.defpath if len(new_env["PATH"]) > 0 and not new_env["PATH"].startswith(os.pathsep): new_env["PATH"] = os.pathsep + new_env["PATH"] - new_env["PATH"] = str(self._path_overrides_dir) + new_env["PATH"] + new_env["PATH"] = str(self._path_overrides_dir.absolute()) + new_env["PATH"] if not append_environ is None: new_env.update(append_environ) kwargs["env"] = new_env @@ -229,7 +229,11 @@ class Builder: def setup_environment_overrides(self): '''Sets up overrides of the build environment''' + self.logger.info("Setting up environment overrides...") + for command_name in self.path_overrides: + self.logger.debug("Setting command '{}' as '{}'".format( + command_name, self.path_overrides[command_name])) self._write_path_override(command_name, self.path_overrides[command_name]) def check_build_environment(self):