1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-08-03 08:21:58 +03:00

setup: styling: Fix last occurrence of os.path in favour of pathlib

Commit e749b4cf forgot to update a couple more occurrences.

Fixes: e749b4cf11
Signed-off-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
Erik Skultety
2023-06-09 10:36:45 +02:00
parent 28d620c36c
commit 3ffb60b7c8

View File

@ -338,7 +338,7 @@ class my_clean(Command):
pass pass
def run(self): def run(self):
if os.path.exists("build"): if Path("build").exists():
shutil.rmtree("build", ignore_errors=True) shutil.rmtree("build", ignore_errors=True)
@ -355,8 +355,7 @@ MIN_LIBVIRT_LXC = "1.0.2"
# Hack to stop "pip install" failing with error # Hack to stop "pip install" failing with error
# about missing "build" dir. # about missing "build" dir.
if not os.path.exists("build"): Path("build").mkdir(exist_ok=True)
os.mkdir("build")
check_pkgcfg() check_pkgcfg()