From c6efb69262afaeff56ec14cdd5f292f563e00c27 Mon Sep 17 00:00:00 2001 From: developomp Date: Thu, 5 May 2022 23:38:22 +0900 Subject: [PATCH] fixed usage of outdated constants --- src/util.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/util.py b/src/util.py index 2f86e30..b20fc18 100644 --- a/src/util.py +++ b/src/util.py @@ -1,12 +1,12 @@ -from .constants import content_dir -from .log import error - from importlib.machinery import SourceFileLoader from os import system, makedirs from os.path import dirname import requests import zipfile +from src.log import error +import src.constants + def paru_install(packages: str | list[str]) -> None: """ @@ -84,7 +84,7 @@ def copy_directory(src: str, dst: str): def load_dconf(file_name: str): """Loads dconf configuration""" - system(f'dconf load / < "{content_dir}/dconf/{file_name}"') + system(f'dconf load / < "{src.constants.content_dir}/dconf/{file_name}"') def download(file_name: str, url: str):