Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
0e52e29
1
Parent(s):
6a5e90d
Fix issue with re-running outside pyjulia
Browse files- pysr/sr.py +1 -1
pysr/sr.py
CHANGED
@@ -624,7 +624,7 @@ def _create_julia_files(
|
|
624 |
else:
|
625 |
julia_project = Path(julia_project)
|
626 |
|
627 |
-
if not already_ran_with_pyjulia:
|
628 |
print(f"import Pkg", file=f)
|
629 |
print(f'Pkg.activate("{_escape_filename(julia_project)}")', file=f)
|
630 |
if need_install:
|
|
|
624 |
else:
|
625 |
julia_project = Path(julia_project)
|
626 |
|
627 |
+
if (pyjulia and not already_ran_with_pyjulia) or (not pyjulia):
|
628 |
print(f"import Pkg", file=f)
|
629 |
print(f'Pkg.activate("{_escape_filename(julia_project)}")', file=f)
|
630 |
if need_install:
|