mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Refactor CLI.py to update dependency paths and reorder imports
This commit is contained in:
parent
e1196ffbc9
commit
99ce9caa12
1 changed files with 4 additions and 4 deletions
|
|
@ -4,20 +4,20 @@ from datetime import datetime
|
|||
from json import dumps, loads
|
||||
from operator import itemgetter
|
||||
from time import time
|
||||
from dotenv import dotenv_values
|
||||
from os import environ, getenv, sep
|
||||
from os.path import join
|
||||
from pathlib import Path
|
||||
from redis import StrictRedis, Sentinel
|
||||
from subprocess import DEVNULL, STDOUT, run
|
||||
from sys import path as sys_path
|
||||
from typing import Any, Optional, Tuple
|
||||
|
||||
|
||||
for deps_path in [join(sep, "usr", "share", "bunkerweb", *paths) for paths in (("utils",), ("db",))]:
|
||||
for deps_path in [join(sep, "usr", "share", "bunkerweb", *paths) for paths in (("deps", "python"), ("utils",), ("api",), ("db",))]:
|
||||
if deps_path not in sys_path:
|
||||
sys_path.append(deps_path)
|
||||
|
||||
from dotenv import dotenv_values
|
||||
from redis import StrictRedis, Sentinel
|
||||
|
||||
from API import API # type: ignore
|
||||
from ApiCaller import ApiCaller # type: ignore
|
||||
from logger import setup_logger # type: ignore
|
||||
|
|
|
|||
Loading…
Reference in a new issue