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
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
|
||||
|
||||
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()
|
||||
|
||||
|
Reference in New Issue
Block a user