Skip to content

Commit

Permalink
build: fix DATA_DIR location
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Apr 8, 2024
1 parent 799c7b6 commit aabb0c7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
5 changes: 2 additions & 3 deletions tools/generate_images
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import argparse
from pathlib import Path
from subprocess import check_call

TOOLS_DIR = Path(__file__).parent
REPO_DIR = TOOLS_DIR.parent
DATA_DIR = REPO_DIR / 'data'
from common import DATA_DIR

SOURCE_DIR = DATA_DIR / "images"
TARGET_DIR = DATA_DIR / "ship/data/images"

Expand Down
5 changes: 1 addition & 4 deletions tools/generate_rcfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@
import argparse
from pathlib import Path

from shared.common import DATA_DIR
from shared.versioning import generate_version

REPO_DIR = Path(__file__).parent.parent
DATA_DIR = REPO_DIR / "data"
SRC_DIR = REPO_DIR / "src"


def parse_args() -> argparse.Namespace:
parser = argparse.ArgumentParser()
Expand Down
2 changes: 1 addition & 1 deletion tools/shared/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

TOOLS_DIR = Path(__file__).parent.parent
REPO_DIR = TOOLS_DIR.parent
DATA_DIR = REPO_DIR / "src"
DATA_DIR = REPO_DIR / "data"
SRC_DIR = REPO_DIR / "src"

0 comments on commit aabb0c7

Please sign in to comment.