Spaces:
Running
Running
Commit
·
f68c622
1
Parent(s):
16a09af
Make sure that full `os.environ` is passed to subprocess
Browse files- pysr/julia_helpers.py +3 -1
pysr/julia_helpers.py
CHANGED
|
@@ -33,7 +33,9 @@ def _get_julia_env_dir():
|
|
| 33 |
# Have to manually get env dir:
|
| 34 |
try:
|
| 35 |
julia_env_dir_str = subprocess.run(
|
| 36 |
-
["julia", "-e using Pkg; print(Pkg.envdir())"],
|
|
|
|
|
|
|
| 37 |
).stdout.decode()
|
| 38 |
except FileNotFoundError:
|
| 39 |
env_path = os.environ["PATH"]
|
|
|
|
| 33 |
# Have to manually get env dir:
|
| 34 |
try:
|
| 35 |
julia_env_dir_str = subprocess.run(
|
| 36 |
+
["julia", "-e using Pkg; print(Pkg.envdir())"],
|
| 37 |
+
capture_output=True,
|
| 38 |
+
env=os.environ,
|
| 39 |
).stdout.decode()
|
| 40 |
except FileNotFoundError:
|
| 41 |
env_path = os.environ["PATH"]
|