Adjust path style in config

ryzomclassic-develop
kaetemi 3 years ago
parent 3b993c6cda
commit c3dcdd25de
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -53,23 +53,23 @@ mkPath(log, ShardDevDirectory)
mkPath(log, ShardDevDirectory + "/local") mkPath(log, ShardDevDirectory + "/local")
printLog(log, ">>> Generate shard dev local.cfg <<<") printLog(log, ">>> Generate shard dev local.cfg <<<")
cfg = open(ShardDevDirectory + "/local.cfg", "w") cfg = open(ShardDevDirectory + "/local.cfg", "w")
cfg.write("WindowStyle = \"WIN\";") cfg.write("WindowStyle = \"WIN\";\n")
cfg.write("Paths = {") cfg.write("Paths = {\n")
cfg.write(" \"" + ShardDevDirectory.replace('/', '\\') + "\\local\",") cfg.write(" \"" + ShardDevDirectory + "/local\",\n")
cfg.write(" \"" + DataCommonDirectory.replace('/', '\\') + "\",") cfg.write(" \"" + DataCommonDirectory + "\",\n")
cfg.write(" \"" + DataShardDirectory.replace('/', '\\') + "\",") cfg.write(" \"" + DataShardDirectory + "\",\n")
cfg.write(" \"" + LeveldesignDirectory.replace('/', '\\') + "\",") cfg.write(" \"" + LeveldesignDirectory + "\",\n")
cfg.write(" \"" + WorldEditorFilesDirectory.replace('/', '\\') + "\",") cfg.write(" \"" + WorldEditorFilesDirectory + "\",\n")
for multiDir in InstallShardDataMultiDirectories: for multiDir in InstallShardDataMultiDirectories:
dstDir = multiDir[0] dstDir = multiDir[0]
mkPath(log, ShardInstallDirectory + "/" + dstDir) mkPath(log, ShardInstallDirectory + "/" + dstDir)
cfg.write(" \"" + ShardInstallDirectory + "\\" + dstDir + "\",") cfg.write(" \"" + ShardInstallDirectory + "/" + dstDir + "\",\n")
cfg.write("};") cfg.write("};\n")
cfg.write("StartCommands += {") cfg.write("StartCommands += {\n")
cfg.write(" // Don't launch AES on development shard for now") cfg.write(" // Don't launch AES on development shard for now\n")
cfg.write(" \"gw_aes.transportRemove aes_l3c\",") cfg.write(" \"gw_aes.transportRemove aes_l3c\",\n")
cfg.write("};") cfg.write("};\n")
cfg.write("DontNeedBackend = 1;") cfg.write("DontNeedBackend = 1;\n")
cfg.flush() cfg.flush()
cfg.close() cfg.close()
printLog(log, "") printLog(log, "")
@ -96,7 +96,7 @@ else:
if os.path.isfile("log.log"): if os.path.isfile("log.log"):
f = open("log.log", "r") f = open("log.log", "r")
for l in f: for l in f:
log.write(l) printLog(log, l.rstrip())
f.close() f.close()
os.chdir(cwDir) os.chdir(cwDir)
printLog(log, "") printLog(log, "")

Loading…
Cancel
Save