From b2c858f4c6cb7fcd44cb2c3e710a0bcc4cd8cb2f Mon Sep 17 00:00:00 2001 From: Zach Halpern Date: Tue, 2 Apr 2019 13:07:26 -0400 Subject: [PATCH] test out without backup Signed-off-by: Zach Halpern --- magic_spoiler/__main__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/magic_spoiler/__main__.py b/magic_spoiler/__main__.py index 7475289e..8396f27f 100644 --- a/magic_spoiler/__main__.py +++ b/magic_spoiler/__main__.py @@ -350,8 +350,8 @@ def write_spoilers_xml(trice_dicts: Dict[str, List[Dict[str, Any]]]) -> None: Write the spoiler.xml file :param trice_dicts: Dict of dict entries """ - pathlib.Path("../out").mkdir(exist_ok=True) - card_xml_file = pathlib.Path("../out/spoiler.xml").open("w") + pathlib.Path("out").mkdir(exist_ok=True) + card_xml_file = pathlib.Path("out/spoiler.xml").open("w") # Fill in set headers open_header(card_xml_file) @@ -378,8 +378,8 @@ def write_set_xml(trice_dict: List[Dict[str, Any]], set_obj: Dict[str, str]) -> if not trice_dict: return - pathlib.Path("../out").mkdir(exist_ok=True) - card_xml_file = pathlib.Path("../out/{}.xml".format(set_obj["code"])).open("w") + pathlib.Path("out").mkdir(exist_ok=True) + card_xml_file = pathlib.Path("out/{}.xml".format(set_obj["code"])).open("w") open_header(card_xml_file) fill_header_sets(card_xml_file, set_obj)