Skip to content

Commit

Permalink
Add/Fix: Print default paths in aac-datasets-info and fix Dict typing…
Browse files Browse the repository at this point in the history
… for python 3.7 in paths.py file.
  • Loading branch information
Labbeti committed Aug 14, 2023
1 parent 1ca3bdb commit e5b1f5a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions src/aac_datasets/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@

import aac_datasets

from aac_datasets.utils.paths import (
get_default_root,
get_default_ffmpeg_path,
get_default_ytdl_path,
)


def get_package_repository_path() -> str:
"""Return the absolute path where the source code of this package is installed."""
Expand All @@ -29,6 +35,9 @@ def get_install_info() -> Dict[str, str]:
"torch": str(torch.__version__),
"torchaudio": torchaudio.__version__,
"package_path": get_package_repository_path(),
"root": get_default_root(),
"ffmpeg_path": get_default_ffmpeg_path(),
"ytdl_path": get_default_ytdl_path(),
}


Expand Down
4 changes: 2 additions & 2 deletions src/aac_datasets/utils/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
import os
import os.path as osp

from typing import Optional, Union
from typing import Dict, Optional, Union


pylog = logging.getLogger(__name__)


__DEFAULT_PATHS: dict[str, dict[str, Optional[str]]] = {
__DEFAULT_PATHS: Dict[str, Dict[str, Optional[str]]] = {
"root": {
"user": None,
"env": "AAC_DATASETS_ROOT",
Expand Down

0 comments on commit e5b1f5a

Please sign in to comment.