diff --git a/dungeonsheets/readers.py b/dungeonsheets/readers.py index c01f03a..927ab5f 100644 --- a/dungeonsheets/readers.py +++ b/dungeonsheets/readers.py @@ -47,7 +47,7 @@ def read_sheet_file(filename: Union[str, Path]) -> dict: char_props = {} parent_sheets = these_props.pop('parent_sheets', []) for parent_sheet in parent_sheets: - parent_sheet = Path(parent_sheet) + parent_sheet = (filename.parent / parent_sheet).resolve() if parent_sheet != filename: parent_props = read_sheet_file(parent_sheet) char_props.update(parent_props) diff --git a/tests/test_make_sheets.py b/tests/test_make_sheets.py index 424eac6..70330ed 100644 --- a/tests/test_make_sheets.py +++ b/tests/test_make_sheets.py @@ -7,7 +7,7 @@ from dungeonsheets import make_sheets, character, monsters EG_DIR = Path(__file__).parent.parent.resolve() / "examples" CHARFILE = EG_DIR / "rogue1.py" -GMFILE = EG_DIR / "gm.py" +GMFILE = EG_DIR / "gm-session-notes.py" class MakeSheetsTestCase(unittest.TestCase): diff --git a/tests/test_readers.py b/tests/test_readers.py index d1ac3bf..aa91c33 100644 --- a/tests/test_readers.py +++ b/tests/test_readers.py @@ -9,7 +9,7 @@ from dungeonsheets.readers import read_sheet_file EG_DIR = (Path(__file__).parent.parent / "examples").resolve() CHAR_PYTHON_FILE = EG_DIR / "rogue1.py" -GM_PYTHON_FILE = EG_DIR / "gm.py" +GM_PYTHON_FILE = EG_DIR / "gm-session-notes.py" ROLL20_JSON_FILE = EG_DIR / "barbarian3.json" FOUNDRY_JSON_FILE = EG_DIR / "bard3_foundry.json" SPELLCASTER_JSON_FILE = EG_DIR / "artificer2.json"