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
Commite749b4cf
forgot to update a couple more occurrences. Fixes:e749b4cf11
Signed-off-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
5
setup.py
5
setup.py
@ -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()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user