Skip to content

Commit

Permalink
fix: replace os's functions to pathlib's ones
Browse files Browse the repository at this point in the history
  • Loading branch information
seppzer0 committed Feb 19, 2024
1 parent 6c351db commit 78a7bfa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wrapper/engines/container_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def container_options(self) -> list[str]:
if self.conan_upload:
options.append('-e CONAN_UPLOAD_CUSTOM=1')
# determine the path to local Conan cache and check if it exists
if self.dir_bundle_conan.isdir():
if self.dir_bundle_conan.is_dir():
options.append(f'-v {self.dir_bundle_conan}:/"/root/.conan"')
else:
msg.error("Could not find Conan local cache on the host machine.")
Expand All @@ -162,11 +162,11 @@ def create_dirs(self) -> None:
match self.module:
case "kernel":
kdir = Path(dcfg.kernel)
if not kdir.isdir():
if not kdir.is_dir():
os.mkdir(kdir)
case "assets":
assetsdir = Path(dcfg.assets)
if not assetsdir.isdir():
if not assetsdir.is_dir():
os.mkdir(assetsdir)
case "bundle":
if self.package_type in ("slim", "full"):
Expand Down

0 comments on commit 78a7bfa

Please sign in to comment.