Skip to content

Commit

Permalink
Update gen_gpio_defaults.py
Browse files Browse the repository at this point in the history
Only remove created copies. Do not remove originals (which shouldn't exist in the user area).
  • Loading branch information
d-m-bailey authored Feb 28, 2024
1 parent 4fb13c5 commit 22f2e9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/gen_gpio_defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ def usage():
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):
Expand Down

0 comments on commit 22f2e9c

Please sign in to comment.