1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-24 04:43:49 +00:00

Use existing path variables in the generated config

This commit is contained in:
elsid 2024-06-25 00:40:18 +02:00
parent 8bed983661
commit fa1e574097
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

View File

@ -45,11 +45,11 @@ def runTest(name):
with open(config_dir / "openmw.cfg", "w", encoding="utf-8") as omw_cfg:
omw_cfg.writelines(
(
f'data="{example_suite_dir}{os.sep}game_template{os.sep}data"\n',
f'data="{example_suite_content.parent}"\n',
f'data="{testing_util_dir}"\n',
f'data-local="{test_dir}"\n',
f'user-data="{userdata_dir}"\n',
"content=template.omwgame\n",
f'content={example_suite_content.name}\n',
)
)
if (test_dir / "openmw.cfg").exists():