From df3f0dc7c3e963b9e43d047500ece87c741d60cf Mon Sep 17 00:00:00 2001 From: Alexander Vieth Date: Wed, 9 Oct 2024 16:29:17 +0200 Subject: [PATCH] Consistently use pathlib.Path over os.path --- conanfile.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/conanfile.py b/conanfile.py index e1f9143..90f0f76 100644 --- a/conanfile.py +++ b/conanfile.py @@ -152,7 +152,9 @@ def build(self): cmake.build(build_type="Release") def package(self): - package_dir = os.path.join(self.build_folder, "package") + package_dir = pathlib.Path(self.build_folder, "package") + debug_dir = package_dir / "Debug" + release_dir = package_dir / "Release" print("Packaging install dir: ", package_dir) subprocess.run( [ @@ -162,7 +164,7 @@ def package(self): "--config", "Debug", "--prefix", - os.path.join(package_dir, "Debug"), + debug_dir, ] ) subprocess.run( @@ -173,7 +175,7 @@ def package(self): "--config", "Release", "--prefix", - os.path.join(package_dir, "Release"), + release_dir, ] ) self.copy(pattern="*", src=package_dir)