From b5946068627170586008fa596d109cdb7accec23 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Wed, 16 Jun 2021 18:25:38 +0800 Subject: [PATCH] Fix initial shard dev --- nel/tools/build_gamedata/b3_shard_dev.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nel/tools/build_gamedata/b3_shard_dev.py b/nel/tools/build_gamedata/b3_shard_dev.py index b91a23859..c596f7c31 100644 --- a/nel/tools/build_gamedata/b3_shard_dev.py +++ b/nel/tools/build_gamedata/b3_shard_dev.py @@ -109,7 +109,8 @@ else: mkPath(log, PatchmanDevDirectory) cwDir = os.getcwd().replace("\\", "/") os.chdir(PatchmanDevDirectory) - os.remove("log.log") + if os.path.isfile("log.log"): + os.remove("log.log") subprocess.call([ PatchmanService, "-C.", "-L." ]) if os.path.isfile("log.log"): f = open("log.log", "r")