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")
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, "")

Loading…
Cancel
Save