Skip to content

Commit 5addbc0

Browse files
committed
Exclude GUI when "TACC" env variables exist
1 parent 40bfa82 commit 5addbc0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/createEVENT/Celeris/celeris/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ def Evolve_Display( # noqa: C901, N802, D102
609609
canvas = None
610610
import platform
611611
os_name = platform.system()
612-
ON_HPC = os.environ.get("TACC_JOB_ID") or os.environ.get("SLURM_JOB_ID")
612+
ON_HPC = any("TACC" in k for k in os.environ)
613613
use_ggui = not bool(ON_HPC)
614614
show_gui = not bool(ON_HPC)
615615
if show_gui:

0 commit comments

Comments
 (0)