From c3dcdd25de05c218fb89502c20ba133ddbc114eb Mon Sep 17 00:00:00 2001 From: kaetemi Date: Sun, 13 Jun 2021 04:54:20 +0800 Subject: [PATCH] Adjust path style in config --- nel/tools/build_gamedata/b3_shard_dev.py | 30 ++++++++++++------------ 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/nel/tools/build_gamedata/b3_shard_dev.py b/nel/tools/build_gamedata/b3_shard_dev.py index 7f0ef0c4e..5f2ccbd60 100644 --- a/nel/tools/build_gamedata/b3_shard_dev.py +++ b/nel/tools/build_gamedata/b3_shard_dev.py @@ -53,23 +53,23 @@ mkPath(log, ShardDevDirectory) mkPath(log, ShardDevDirectory + "/local") printLog(log, ">>> Generate shard dev local.cfg <<<") cfg = open(ShardDevDirectory + "/local.cfg", "w") -cfg.write("WindowStyle = \"WIN\";") -cfg.write("Paths = {") -cfg.write(" \"" + ShardDevDirectory.replace('/', '\\') + "\\local\",") -cfg.write(" \"" + DataCommonDirectory.replace('/', '\\') + "\",") -cfg.write(" \"" + DataShardDirectory.replace('/', '\\') + "\",") -cfg.write(" \"" + LeveldesignDirectory.replace('/', '\\') + "\",") -cfg.write(" \"" + WorldEditorFilesDirectory.replace('/', '\\') + "\",") +cfg.write("WindowStyle = \"WIN\";\n") +cfg.write("Paths = {\n") +cfg.write(" \"" + ShardDevDirectory + "/local\",\n") +cfg.write(" \"" + DataCommonDirectory + "\",\n") +cfg.write(" \"" + DataShardDirectory + "\",\n") +cfg.write(" \"" + LeveldesignDirectory + "\",\n") +cfg.write(" \"" + WorldEditorFilesDirectory + "\",\n") for multiDir in InstallShardDataMultiDirectories: dstDir = multiDir[0] mkPath(log, ShardInstallDirectory + "/" + dstDir) - cfg.write(" \"" + ShardInstallDirectory + "\\" + dstDir + "\",") -cfg.write("};") -cfg.write("StartCommands += {") -cfg.write(" // Don't launch AES on development shard for now") -cfg.write(" \"gw_aes.transportRemove aes_l3c\",") -cfg.write("};") -cfg.write("DontNeedBackend = 1;") + cfg.write(" \"" + ShardInstallDirectory + "/" + dstDir + "\",\n") +cfg.write("};\n") +cfg.write("StartCommands += {\n") +cfg.write(" // Don't launch AES on development shard for now\n") +cfg.write(" \"gw_aes.transportRemove aes_l3c\",\n") +cfg.write("};\n") +cfg.write("DontNeedBackend = 1;\n") cfg.flush() cfg.close() printLog(log, "") @@ -96,7 +96,7 @@ else: if os.path.isfile("log.log"): f = open("log.log", "r") for l in f: - log.write(l) + printLog(log, l.rstrip()) f.close() os.chdir(cwDir) printLog(log, "")