Harden portable Redmine CLI runtime and cache writes

This commit is contained in:
Jason Thistlethwaite
2026-10-18 03:18:36 -04:00
parent f6915face2
commit 2e686215ed
19 changed files with 1353 additions and 224 deletions
+4 -4
View File
@@ -442,16 +442,16 @@ class RedmineTUI:
except Exception:
pass
mode = os.environ.get("NMI_MODE", "dev")
env_file = os.environ.get("NMI_ENV_FILE") or "/home/jason/projects/mrscClient-php/examples/modern/.env"
mode = os.environ.get("NMI_MODE")
env_file = os.environ.get("NMI_ENV_FILE")
runtime_profile = (
resolve_runtime_profile(mode=mode, env_file=env_file)
if resolve_runtime_profile is not None
if ch.nmi_brief and resolve_runtime_profile is not None
else None
)
if runtime_profile is not None:
mode = runtime_profile.mode
env_file = str(runtime_profile.env_file)
env_file = str(runtime_profile.env_file) if runtime_profile.env_file else None
if ch.entity_extract and issue_for_special and extract_entities_from_issue:
try: