Skip to content

Commit

Permalink
[KiRi Mode] Keep the names of the sheets as generated by KiCad
Browse files Browse the repository at this point in the history
  • Loading branch information
set-soft committed Dec 11, 2023
1 parent 8a54e92 commit c786f58
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions kicad-diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,19 +258,8 @@ def GenSCHImageSVG(file, file_hash, hash_dir, file_no_ext, layer_names, kiri_mod
logger.error('Failed to plot %s' % file)
exit(FAILED_TO_PLOT)
if kiri_mode:
# Fix the file names
# Remove the "PROJECT-" part
prefix = file_no_ext+'-'
l_prefix = len(prefix)
for f in files:
name = basename(f)
dir = dirname(f)
if name.startswith(prefix):
new_name = dir+sep+name[l_prefix:]
rename(f, new_name)
compress_svg(new_name)
else:
compress_svg(f)
compress_svg(f)
else:
# Convert the files to PNG
# Also rename the files to make independent of the project name
Expand Down

0 comments on commit c786f58

Please sign in to comment.