Skip to content

Commit

Permalink
Ensure that the JuliaInfo is reset after install
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Sep 8, 2022
1 parent cc9adea commit 375cf2f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pysr/julia_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ def load_juliainfo():
return juliainfo


def reset_juliainfo():
"""Reset juliainfo to None."""
global juliainfo
juliainfo = None


def _set_julia_project_env(julia_project, is_shared):
if is_shared:
if is_julia_version_greater_eq(version=(1, 7, 0)):
Expand Down Expand Up @@ -79,6 +85,9 @@ def install(julia_project=None, quiet=False): # pragma: no cover
" so that the Julia environment is properly initialized."
)

# Ensure that the JuliaInfo is reset:
reset_juliainfo()


def import_error_string(julia_project=None):
s = """
Expand Down

0 comments on commit 375cf2f

Please sign in to comment.