Skip to content

Commit

Permalink
Don't fail on symlinks for packages path
Browse files Browse the repository at this point in the history
  • Loading branch information
teutoburg committed Oct 5, 2024
1 parent efbd48e commit a32f337
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scopesim/server/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from .download_utils import (get_server_folder_contents, handle_download,
handle_unzipping, create_client, ServerError)
from ..utils import get_logger
from ..commands.user_commands import patch_fake_symlinks


logger = get_logger(__name__)
Expand Down Expand Up @@ -445,6 +446,7 @@ def download_missing_pkgs(instrument: str) -> None:
def check_packages(instrument: str, download_missing: bool) -> None:
"""Check if required package is in CWD, download if needed."""
pkgdir = Path(rc.__config__["!SIM.file.local_packages_path"])
pkgdir = patch_fake_symlinks(pkgdir)
if not (pkgdir / instrument).exists():
logger.warning("IRDB package for %s not found.", instrument)
if download_missing:
Expand Down

0 comments on commit a32f337

Please sign in to comment.