Fix relative path being used as install location. Thanks to Andre Borrmann for reporting this.
This commit is contained in:
+2
-7
@@ -235,14 +235,9 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
global_prefix = Path(args.install_dir)
|
global_prefix = Path(args.install_dir).resolve()
|
||||||
|
|
||||||
if not global_prefix.is_absolute():
|
|
||||||
script_dir = Path(__file__).parent.resolve().absolute()
|
|
||||||
global_prefix = script_dir / global_prefix
|
|
||||||
|
|
||||||
common.settings.set_global_build_dir(args.build_dir)
|
common.settings.set_global_build_dir(args.build_dir)
|
||||||
common.settings.set_global_install_prefix(args.install_dir)
|
common.settings.set_global_install_prefix(global_prefix)
|
||||||
common.settings.set_global_rebuild(args.rebuild)
|
common.settings.set_global_rebuild(args.rebuild)
|
||||||
|
|
||||||
package = args.package
|
package = args.package
|
||||||
|
|||||||
Reference in New Issue
Block a user