diff --git a/BG3Extender/make_enumerations.py b/BG3Extender/make_enumerations.py index c208dac5..6d09a731 100644 --- a/BG3Extender/make_enumerations.py +++ b/BG3Extender/make_enumerations.py @@ -72,6 +72,8 @@ def preprocess_line(self, line): cur_enumerations = '' try: + if not os.path.exists('GameDefinitions/Generated'): + os.mkdir('GameDefinitions/Generated') with open('GameDefinitions/Generated/Enumerations.inl', 'r') as f: cur_enumerations = f.read() except FileNotFoundError: diff --git a/BG3Extender/make_property_map.py b/BG3Extender/make_property_map.py index a66c0ad4..d1e0a37c 100644 --- a/BG3Extender/make_property_map.py +++ b/BG3Extender/make_property_map.py @@ -699,6 +699,9 @@ def preprocess_line(self, line): except FileNotFoundError: pass +if not os.path.exists('GameDefinitions/Generated'): + os.mkdir('GameDefinitions/Generated') + if cur_names != propmap_names + preprocessor.names: with open('GameDefinitions/Generated/PropertyMapNames.inl', 'w') as f: f.write(propmap_names + preprocessor.names)