Expect openmw.cfg to exist

This commit is contained in:
elsid 2025-02-26 22:31:38 +01:00
parent 95312139d5
commit f80c7b2355
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40

View File

@ -58,10 +58,8 @@ def runTest(name):
)
for path in content_paths:
omw_cfg.write(f'content={path.name}\n')
if (test_dir / "openmw.cfg").exists():
omw_cfg.write(open(test_dir / "openmw.cfg").read())
elif (test_dir / "test.omwscripts").exists():
omw_cfg.write("content=test.omwscripts\n")
with open(test_dir / "openmw.cfg") as stream:
omw_cfg.write(stream.read())
with open(config_dir / "settings.cfg", "a", encoding="utf-8") as settings_cfg:
settings_cfg.write(
"[Video]\n"