1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-08-01 00:21:59 +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
def run(self):
if os.path.exists("build"):
if Path("build").exists():
shutil.rmtree("build", ignore_errors=True)
@ -355,8 +355,7 @@ MIN_LIBVIRT_LXC = "1.0.2"
# Hack to stop "pip install" failing with error
# about missing "build" dir.
if not os.path.exists("build"):
os.mkdir("build")
Path("build").mkdir(exist_ok=True)
check_pkgcfg()