From 68d16f15f10cab999ea7f41451cf8daa6378148e Mon Sep 17 00:00:00 2001 From: Fazana <52551480+FazanaJ@users.noreply.github.com> Date: Fri, 10 Dec 2021 09:23:20 +0000 Subject: [PATCH] Fix building for clean repos --- tools/python/generate_ld.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/python/generate_ld.py b/tools/python/generate_ld.py index 1164ad4c..fcfa302a 100644 --- a/tools/python/generate_ld.py +++ b/tools/python/generate_ld.py @@ -231,7 +231,8 @@ class GenerateLD: if os.path.exists('./dkr.ld'): print("") else: - os.remove('./assets/' + VERSION + '/md5.txt') + if os.path.exists('./assets/' + VERSION + '/md5.txt'): + os.remove('./assets/' + VERSION + '/md5.txt') if os.path.exists('./assets/' + VERSION + '/md5.txt'): with open('./assets/' + VERSION + '/md5.txt', "rt") as a_file: