Skip to content

Commit

Permalink
Fix legacy support for ARGOS_TRANSLATE_PACKAGE_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
PJ-Finlay committed Sep 24, 2024
1 parent 22134fe commit 275e7f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion argostranslate/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def get_installed_packages(path: Path = None) -> list[Package]:
Looks for packages in <home>/.argos-translate/local/share/packages by
default. Will also look in the directory specified
in the ARGOS_TRANSLATE_PACKAGE_DIR environment variable
in the ARGOS_PACKAGE_DIR environment variable
if it is set.
Args:
Expand Down
4 changes: 2 additions & 2 deletions argostranslate/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
)
os.makedirs(data_dir, exist_ok=True)

# ARGOS_TRANSLATE_PACKAGES_DIR deprecated 1.2.0
# ARGOS_TRANSLATE_PACKAGE_DIR deprecated 1.2.0
legacy_package_data_dir = Path(
os.getenv("ARGOS_TRANSLATE_PACKAGES_DIR", default=data_dir / "packages")
os.getenv("ARGOS_TRANSLATE_PACKAGE_DIR", default=data_dir / "packages")
)

config_dir = (
Expand Down

0 comments on commit 275e7f7

Please sign in to comment.