Fixed NameError

This commit is contained in:
Dimitris Zlatanidis 2023-02-28 14:18:53 +02:00
parent 815122b12a
commit 2b42d6d99b

View file

@ -37,7 +37,7 @@ class Configs:
tmp_path: str = '/tmp'
tmp_slpkg: str = Path(tmp_path, prog_name)
build_path: str = Path('tmp', prog_name, 'build')
download_only: str = Path(tmp_slpkg, '')
download_only_path: str = Path(tmp_slpkg, '')
lib_path: str = Path('/var/lib/', prog_name)
etc_path: str = Path('/etc/', prog_name)
db_path: str = Path(lib_path, 'database')
@ -98,7 +98,7 @@ class Configs:
# All necessary paths
tmp_slpkg: str = config['TMP_SLPKG']
build_path: str = config['BUILD_PATH']
download_only: str = config['DOWNLOAD_ONLY']
download_only_path: str = config['DOWNLOAD_ONLY_PATH']
sbo_repo_path: str = config['SBO_REPO_PATH']
# Database name
@ -148,7 +148,7 @@ class Configs:
# Creating the paths if not exists
paths = [tmp_slpkg,
build_path,
download_only,
download_only_path,
sbo_repo_path,
lib_path,
etc_path,