Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 56a8ad6

Browse files
committed
chore: print filename on PNGExporter
1 parent 364f595 commit 56a8ad6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎exporters/png_exporter.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ def render(self, grid: Grid, **kwargs: Any) -> None:
1919

2020
filename, cell_size, coloring = self._process_kwargs(**kwargs)
2121
image = self._render(grid, cell_size, coloring and has_color)
22-
image.save("{}.png".format(filename), "PNG", optimize=True)
22+
output_filename = "{}.png".format(filename)
23+
image.save(output_filename, "PNG", optimize=True)
24+
print("Filename: {}".format(output_filename))
2325

2426
@staticmethod
2527
def _render(grid: Grid, cell_size: int = 4, coloring: bool = False) -> ImageType:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /