Skip to content
Snippets Groups Projects
Commit 7c655f5c authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

fix path and some linting issues

parent e5c4da0c
No related branches found
No related tags found
No related merge requests found
...@@ -19,8 +19,8 @@ except ImportError: ...@@ -19,8 +19,8 @@ except ImportError:
sys.path.append(str(Path(__file__).parents[1].resolve())) sys.path.append(str(Path(__file__).parents[1].resolve()))
import utils as u import utils as u # noqa: E402
from utils.apt import Apt from utils.apt import Apt # noqa: E402
def is_ha(port: int) -> bool: def is_ha(port: int) -> bool:
......
...@@ -180,7 +180,7 @@ def load_conf() -> dict: ...@@ -180,7 +180,7 @@ def load_conf() -> dict:
""" """
conf = {} conf = {}
base_dir = get_dir(__file__) base_dir = str(Path(get_dir(__file__)).parent)
files = ( files = (
(str(Path(base_dir, DEFAULT_CONF_PATH)), True), (str(Path(base_dir, DEFAULT_CONF_PATH)), True),
(str(Path(base_dir, AUTO_CONF_PATH)), False), (str(Path(base_dir, AUTO_CONF_PATH)), False),
......
...@@ -8,7 +8,6 @@ import utils as u ...@@ -8,7 +8,6 @@ import utils as u
try: try:
import apt import apt
import apt_pkg
except ModuleNotFoundError: except ModuleNotFoundError:
u.warning("apt python module not found") u.warning("apt python module not found")
exit(2) exit(2)
...@@ -127,4 +126,3 @@ class Apt: ...@@ -127,4 +126,3 @@ class Apt:
upgradable_packages = [p for p in self.installed_packages if p.is_upgradable] upgradable_packages = [p for p in self.installed_packages if p.is_upgradable]
return upgradable_packages return upgradable_packages
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment