From 757d3fad52a1467b414e104b51d82c88ddd6a625 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 3 Jan 2021 14:59:26 +0100 Subject: introduce seperate assets subdirectory --- scripts/generate_latex.py | 4 ++-- scripts/generate_map_img.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts') diff --git a/scripts/generate_latex.py b/scripts/generate_latex.py index f2906308..3cdc5cbe 100755 --- a/scripts/generate_latex.py +++ b/scripts/generate_latex.py @@ -49,7 +49,7 @@ CARD_TEMPLATE = \ SET_SYMBOLS = {'base': 'base', 'magic': 'magic', 'equipments': 'equipments', 'nautics': 'nautics', 'misc': ''} LATEX_ROOT = pathlib.Path(os.getcwd()) -ASSETS_DIR = LATEX_ROOT / 'assets' +ASSETS_DIR = LATEX_ROOT / '../assets' CARDS_DIR = LATEX_ROOT / 'cards' def file_for_card(card_name: str) -> pathlib.Path: @@ -156,7 +156,7 @@ def main(): global CARDS_DIR CARDS_DIR = LATEX_ROOT / 'cards' global ASSETS_DIR - ASSETS_DIR = LATEX_ROOT / 'assets' + ASSETS_DIR = LATEX_ROOT / '../assets' data_files = [args.data] diff --git a/scripts/generate_map_img.py b/scripts/generate_map_img.py index bb6925bc..f4e29148 100755 --- a/scripts/generate_map_img.py +++ b/scripts/generate_map_img.py @@ -7,7 +7,7 @@ import os from typing import MutableMapping MAP_ROOT = pathlib.Path(os.getcwd()) -TILES_DIR = MAP_ROOT / 'tiles' +TILES_DIR = MAP_ROOT / '../assets/tiles' SHOW_MAP = False def get_tile_path(tile: str) -> pathlib.Path: @@ -131,7 +131,7 @@ def main(): global MAP_ROOT MAP_ROOT = pathlib.Path(args.latex_root) global TILES_DIR - TILES_DIR = MAP_ROOT / 'tiles' + TILES_DIR = MAP_ROOT / '../assets/tiles' if args.show_map: global SHOW_MAP -- cgit v1.2.3