Skip to content

Commit

Permalink
Consistently use pathlib.Path over os.path
Browse files Browse the repository at this point in the history
  • Loading branch information
alxvth committed Oct 9, 2024
1 parent 16e2245 commit df3f0dc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
[
Expand All @@ -162,7 +164,7 @@ def package(self):
"--config",
"Debug",
"--prefix",
os.path.join(package_dir, "Debug"),
debug_dir,
]
)
subprocess.run(
Expand All @@ -173,7 +175,7 @@ def package(self):
"--config",
"Release",
"--prefix",
os.path.join(package_dir, "Release"),
release_dir,
]
)
self.copy(pattern="*", src=package_dir)
Expand Down

0 comments on commit df3f0dc

Please sign in to comment.