From f80c7b2355deffe4c1db891626d4ee2ac95372d9 Mon Sep 17 00:00:00 2001 From: elsid Date: Wed, 26 Feb 2025 22:31:38 +0100 Subject: [PATCH] Expect openmw.cfg to exist --- scripts/integration_tests.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/integration_tests.py b/scripts/integration_tests.py index 17f89fbe2f..d742ac8bf9 100755 --- a/scripts/integration_tests.py +++ b/scripts/integration_tests.py @@ -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"