Skip to content

Commit c522b55

Browse files
committed
Fixed bugs.
1 parent 145a6e6 commit c522b55

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

omnipkg/cli.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@ def run_demo_with_live_streaming(test_file, demo_name):
120120
process = None
121121
try:
122122
cm = ConfigManager()
123-
current_lang = cm.get_language_code()
123+
# --- THE FIX ---
124+
# Get the language code from the config dictionary using the 'get' method.
125+
current_lang = cm.config.get('language', 'en') # 'en' is a safe default
126+
124127
project_root = Path(__file__).resolve().parent.parent
125128

126129
env = os.environ.copy()
@@ -144,6 +147,7 @@ def run_demo_with_live_streaming(test_file, demo_name):
144147
print(line, end='')
145148

146149
returncode = process.wait()
150+
147151
print('-' * 60)
148152

149153
if returncode == 0:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "omnipkg"
7-
version = "1.1.1"
7+
version = "1.1.2"
88
authors = [
99
{ name = "1minds3t", email = "omnipkg@proton.me" },
1010
]

0 commit comments

Comments
 (0)