From 10941ad0d8dd852ee4f896ae4055dcaee3ff8f86 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 15 Sep 2024 00:09:47 +0200 Subject: [PATCH] step/upper --- spcd/shell.py | 4 ++-- spcd/util.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spcd/shell.py b/spcd/shell.py index f0c7f8c..0a587e7 100644 --- a/spcd/shell.py +++ b/spcd/shell.py @@ -5,6 +5,6 @@ import importlib env = importlib.import_module("env") try: - step = int(env.SPCD_STEP) + STEP = int(env.SPCD_STEP) except AttributeError: - step = 1 + STEP = 1 diff --git a/spcd/util.py b/spcd/util.py index 76cb0f0..13b162d 100644 --- a/spcd/util.py +++ b/spcd/util.py @@ -57,7 +57,7 @@ def split() -> None: def step(text: str) -> None: """Increment the step number of the current build process.""" - shell.step += 1 + shell.STEP += 1 log.info(env.SPCD_DOWN) - log.info(f"{env.SPCD_VERT} {shell.step} {text}") + log.info(f"{env.SPCD_VERT} {shell.STEP} {text}") log.info(env.SPCD___UP)