Harden portable Redmine CLI runtime and cache writes
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user