Skip to content

Commit fc3167d

Browse files
committed
tools/svg2png: Fix python3 issues and broken codepaths
Signed-off-by: Stasia Michalska <hel@lcp.world>
1 parent 56ecad3 commit fc3167d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

tools/generate_pdcs/pdc_gen.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,13 @@ def create_pdc_from_path(path, out_path, viewbox_size, verbose, duration, play_c
7474
precise=False, raise_error=False):
7575

7676
output, errors = create_pdc_data_from_path(path, viewbox_size, verbose, duration, play_count,
77-
precise=False, raise_error=False)
77+
precise, raise_error)
78+
79+
sequence = True
80+
dirname = path
81+
if os.path.isfile(path):
82+
sequence = False
83+
dir_name = os.path.dirname(path)
7884

7985
if output != '':
8086
if out_path is None:

tools/svg2png/svg2png.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def process_pdc_files(path):
106106
for f in pdc_files:
107107
os.remove(f)
108108
else:
109-
print logging.info("No .pdc files found in " + path)
109+
print(logging.info("No .pdc files found in " + path))
110110

111111

112112
# If any files contain invalid points, the images are moved to the 'failed' subdirectory to highlight this for the

0 commit comments

Comments
 (0)