From 5722e40520ceacc5cba06990da4e0d61184bd0a8 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 4 Nov 2024 15:17:09 +0100 Subject: [PATCH] makepanda: Expand tilde in -incdir and -libdir options --- makepanda/makepanda.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makepanda/makepanda.py b/makepanda/makepanda.py index ccaca23d39..fef557e2fc 100755 --- a/makepanda/makepanda.py +++ b/makepanda/makepanda.py @@ -267,11 +267,11 @@ def parseopts(args): break elif option == "--" + pkg.lower() + "-incdir": PkgSetCustomLocation(pkg) - IncDirectory(pkg, value) + IncDirectory(pkg, os.path.expanduser(value)) break elif option == "--" + pkg.lower() + "-libdir": PkgSetCustomLocation(pkg) - LibDirectory(pkg, value) + LibDirectory(pkg, os.path.expanduser(value)) break if (option == "--everything" or option.startswith("--use-") or option == "--nothing" or option.startswith("--no-")):