refactor: make project not singleton

This commit is contained in:
Dobin
2024-02-19 19:36:49 +00:00
parent f915b253a7
commit e3d2deb4a0
5 changed files with 7 additions and 10 deletions
+1 -2
View File
@@ -5,7 +5,6 @@ import glob
import logging
from config import config
from project import project
from defs import *
logger = logging.getLogger("Helper")
@@ -54,7 +53,7 @@ def run_process_checkret(args, check=True):
if ret.stderr != None:
logger.info(ret.stderr.decode('utf-8'))
raise Exception("Command failed: " + " ".join(args))
if ShowCommandOutput:
if config.ShowCommandOutput:
logger.info("> " + " ".join(args))
if ret.stdout != None:
logger.info(ret.stdout.decode('utf-8'))