From f931746226059e040106daea5ff23488f3c39dd7 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Mon, 5 Jun 2023 15:26:13 -0700 Subject: [PATCH] Hack run --data to work correctly --- intake/cli.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/intake/cli.py b/intake/cli.py index ff55b6f..338ccb5 100644 --- a/intake/cli.py +++ b/intake/cli.py @@ -279,6 +279,10 @@ def cmd_run(cmd_args): parser.add_argument("--port", type=int, default=5000) args = parser.parse_args(cmd_args) + # Hack: the web server isn't wired up to take this configuration value + # directly, but it will work to stuff it into the first env checked + os.environ["INTAKE_DATA"] = args.data + try: from intake.app import app