mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-02 05:41:31 +00:00
Expect openmw.cfg to exist
This commit is contained in:
parent
95312139d5
commit
f80c7b2355
1 changed files with 2 additions and 4 deletions
|
@ -58,10 +58,8 @@ def runTest(name):
|
||||||
)
|
)
|
||||||
for path in content_paths:
|
for path in content_paths:
|
||||||
omw_cfg.write(f'content={path.name}\n')
|
omw_cfg.write(f'content={path.name}\n')
|
||||||
if (test_dir / "openmw.cfg").exists():
|
with open(test_dir / "openmw.cfg") as stream:
|
||||||
omw_cfg.write(open(test_dir / "openmw.cfg").read())
|
omw_cfg.write(stream.read())
|
||||||
elif (test_dir / "test.omwscripts").exists():
|
|
||||||
omw_cfg.write("content=test.omwscripts\n")
|
|
||||||
with open(config_dir / "settings.cfg", "a", encoding="utf-8") as settings_cfg:
|
with open(config_dir / "settings.cfg", "a", encoding="utf-8") as settings_cfg:
|
||||||
settings_cfg.write(
|
settings_cfg.write(
|
||||||
"[Video]\n"
|
"[Video]\n"
|
||||||
|
|
Loading…
Reference in a new issue