mirror of
https://github.com/vee1e/flare-floss.git
synced 2026-09-02 02:07:07 +00:00
build_oss_db: derive default output dir from data_root
The default --output-dir hardcoded a path constructed from parents[2], duplicating the floss/tags/data root that data_root() already provides. Use data_root() / "oss" so the script follows the same source of truth as query_string.py.
This commit is contained in:
parent
504e1b5c64
commit
67fc76e4e4
1 changed files with 3 additions and 1 deletions
|
|
@ -49,6 +49,8 @@ import subprocess
|
|||
from typing import Set, Dict, List, Tuple, Callable, Optional
|
||||
from dataclasses import dataclass
|
||||
|
||||
from floss.tags import data_root
|
||||
|
||||
logging.basicConfig(
|
||||
level=logging.INFO,
|
||||
format="%(asctime)s [%(levelname)s] %(name)s: %(message)s",
|
||||
|
|
@ -1099,7 +1101,7 @@ def parse_args(argv: Optional[List[str]] = None) -> argparse.Namespace:
|
|||
parser.add_argument(
|
||||
"--output-dir",
|
||||
type=pathlib.Path,
|
||||
default=pathlib.Path(__file__).resolve().parents[2] / "floss" / "tags" / "data" / "oss",
|
||||
default=data_root() / "oss",
|
||||
help="directory for generated .jsonl.gz files and metrics",
|
||||
)
|
||||
parser.add_argument(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue