Skip to content

Commit

Permalink
add back-compatibility alias for get_webbpsf_data_path
Browse files Browse the repository at this point in the history
  • Loading branch information
mperrin committed Feb 20, 2025
1 parent 2df8622 commit 288bea4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions webbpsf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@

sys.modules["webbpsf"] = stpsf
os.environ["STPSF_PATH"] = os.environ.get("WEBBPSF_PATH", "")

# Add a back-compatibility alias for a function whose name changed during the migration
# This prevents failure of legacy code calls to webbpsf.utils.get_webbpsf_data_path()
stpsf.utils.get_webbpsf_data_path = stpsf.utils.get_stpsf_data_path

0 comments on commit 288bea4

Please sign in to comment.