Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Merge pull request #98 from MilesCranmer/deepsource-transform-38ca4a71
Browse files- pysr/sr.py +1 -2
pysr/sr.py
CHANGED
@@ -37,10 +37,9 @@ def install(julia_project=None, quiet=False): # pragma: no cover
|
|
37 |
else:
|
38 |
io = "stderr"
|
39 |
|
40 |
-
|
41 |
# Can't pass IO to Julia call as it evaluates to PyObject, so just directly
|
42 |
# use Main.eval:
|
43 |
-
Main.eval(f
|
44 |
try:
|
45 |
Pkg.update()
|
46 |
except RuntimeError as e:
|
|
|
37 |
else:
|
38 |
io = "stderr"
|
39 |
|
|
|
40 |
# Can't pass IO to Julia call as it evaluates to PyObject, so just directly
|
41 |
# use Main.eval:
|
42 |
+
Main.eval(f'Pkg.activate("{_escape_filename(julia_project)}", io={io})')
|
43 |
try:
|
44 |
Pkg.update()
|
45 |
except RuntimeError as e:
|