diff --git a/tools/python/generate_ld.py b/tools/python/generate_ld.py index fcfa302a..3591922a 100644 --- a/tools/python/generate_ld.py +++ b/tools/python/generate_ld.py @@ -228,11 +228,8 @@ class GenerateLD: files.sort(key = lambda x: (x[2], x[3])) # Sort tuples by RAM address and prioritize src files first. return files -if os.path.exists('./dkr.ld'): - print("") -else: - if os.path.exists('./assets/' + VERSION + '/md5.txt'): - os.remove('./assets/' + VERSION + '/md5.txt') +if not os.path.exists('./dkr.ld') and 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: