Skip to content

Commit

Permalink
feature(cli): rely on typer.locate instead of homemade function (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts authored Jun 4, 2024
2 parents 7bfa238 + 85e57cd commit 9212c8d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dicogis/cli/cmd_inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
from dicogis.utils.notifier import send_system_notify
from dicogis.utils.slugger import sluggy
from dicogis.utils.texts import TextsManager
from dicogis.utils.utils import Utilities

# ############################################################################
# ########## Globals ###############
Expand Down Expand Up @@ -241,7 +240,8 @@ def inventory(
] = None,
verbose: bool = False,
):
"""Main command.
"""List, extract metadata from geospatial datasets (files or database) and store it
as files.
Make an inventory of geodata files starting from a folder and/or
databases using connection listed in pg_service.conf and store everything in an
Expand Down Expand Up @@ -412,7 +412,7 @@ def inventory(
notification_sound=opt_notify_sound,
)
if opt_open_output:
Utilities.open_dir_file(target=output_path)
typer.launch(url=f"{output_path.resolve()}")

# look for geographic database
if pg_services:
Expand Down Expand Up @@ -478,6 +478,6 @@ def inventory(
)

if opt_open_output:
Utilities.open_dir_file(target=output_path)
typer.launch(url=f"{output_path.resolve()}")

logger.info(f"Logs stored in {Path(app_dir).joinpath('logs')}")

0 comments on commit 9212c8d

Please sign in to comment.