forked from Riesi/frog_emojis_old
parent
7ea094cabc
commit
cfbba20435
|
@ -174,11 +174,7 @@ def main():
|
||||||
raster_graphics(files, sizes)
|
raster_graphics(files, sizes)
|
||||||
# if "specific" parameter was specified, only render those
|
# if "specific" parameter was specified, only render those
|
||||||
if args.specific:
|
if args.specific:
|
||||||
if len(sys.argv) == 2:
|
for file in args.specific:
|
||||||
print("Please specify at least one file!")
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
for file in sys.argv:
|
|
||||||
file = file.removeprefix('svg/').removesuffix('.svg')
|
file = file.removeprefix('svg/').removesuffix('.svg')
|
||||||
if os.path.exists(f"svg/{file}.svg"):
|
if os.path.exists(f"svg/{file}.svg"):
|
||||||
files.append(f"svg/{file}.svg")
|
files.append(f"svg/{file}.svg")
|
||||||
|
|
Loading…
Reference in New Issue