Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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