Utilize os.path instead of pathlib

This commit is contained in:
Eric Torres
2019-02-20 15:52:33 -08:00
parent c789f779ef
commit e8a47eeb83
2 changed files with 7 additions and 9 deletions

View File

@ -9,6 +9,7 @@ Functions:
import argparse
import logging
import os
import sys
import packaging_scripts.pacmanconf as pacmanconf
@ -45,9 +46,9 @@ def del_pkgfile(pkg):
"""Remove package file.
:param pkg: path of package to remove
:type pkg: pathlib.Path object
:type pkg: str
"""
pkg.unlink()
os.remove(pkg)
syslog.info(f"Removed {pkg}")