Hack run --data to work correctly

This commit is contained in:
Tim Van Baak 2023-06-05 15:26:13 -07:00
parent 862e555516
commit f931746226
1 changed files with 4 additions and 0 deletions

View File

@ -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