From 2aecc00cffa67d19983f4cd40d5e7cd25cf7e688 Mon Sep 17 00:00:00 2001 From: "Vy.Hong" Date: Mon, 4 Aug 2025 22:46:42 +0000 Subject: [PATCH] Don't run eval() unless script is called directly This change allows users to use `inspect eval task.py` with different param overrides on the CLI. --- task.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/task.py b/task.py index 7197c0b..df403d0 100644 --- a/task.py +++ b/task.py @@ -20,4 +20,5 @@ def doomla(): ) -eval(doomla) +if __name__ == "__main__": + eval(doomla)