Update gen_gpio_defaults.py

Only remove created copies. Do not remove originals (which shouldn't exist in the user area).
This commit is contained in:
Mitch Bailey 2024-02-29 03:53:00 +09:00 committed by GitHub
parent 4fb13c5f08
commit 22f2e9c6d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -213,9 +213,9 @@ if __name__ == '__main__':
cellsused = [None] * 38
# Remove pre-existing versions of mag and verilog files because they may be out-of-date.
for old_mag_file in glob.glob(magpath + '/gpio_defaults_block*.mag'):
for old_mag_file in glob.glob(magpath + '/gpio_defaults_block_*.mag'):
os.remove(old_mag_file)
for old_verilog_file in glob.glob(glpath + '/gpio_defaults_block*.v'):
for old_verilog_file in glob.glob(glpath + '/gpio_defaults_block_*.v'):
os.remove(old_verilog_file)
for i in range(0, 38):