Skip to content

Commit

Permalink
Try suggestion about loading environment variable to Pyodide
Browse files Browse the repository at this point in the history
  • Loading branch information
raulcd committed Sep 3, 2024
1 parent 3091b51 commit 3d3708a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/scripts/run_emscripten_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import argparse
import contextlib
import http.server
import json
import os
import queue
import shutil
Expand Down Expand Up @@ -153,7 +154,7 @@ def load_pyodide(self, dist_dir):
self.execute_js(
f"""
const {{ loadPyodide }} = require('{dist_dir}/pyodide.js');
let pyodide = await loadPyodide();
let pyodide = await loadPyodide({json.dumps({"env": {"PARQUET_TEST_DATA": os.environ.get("PARQUET_TEST_DATA")}})});
"""
)

Expand Down

0 comments on commit 3d3708a

Please sign in to comment.