Skip to content

Commit

Permalink
fix for screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Feb 20, 2024
1 parent f12f5a3 commit 14f9fb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "textual-dev"
version = "1.5.0"
version = "1.5.1"
homepage = "https://github.com/Textualize/textual-dev"
description = "Development tools for working with Textual"
authors = [
Expand Down
6 changes: 3 additions & 3 deletions src/textual_dev/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def _run_app(
port: int | None,
press: str | None,
screenshot: int | None,
screenshot_location: pathlib.Path | None,
screenshot_path: pathlib.Path | None,
screenshot_filename: pathlib.Path | None,
extra_args: tuple[str],
command: bool = False,
Expand Down Expand Up @@ -210,8 +210,8 @@ def _run_app(
environment["TEXTUAL_PRESS"] = str(press)
if screenshot is not None:
environment["TEXTUAL_SCREENSHOT"] = str(screenshot)
if screenshot_location is not None:
environment["TEXTUAL_SCREENSHOT_LOCATION"] = str(screenshot_location)
if screenshot_path is not None:
environment["TEXTUAL_SCREENSHOT_LOCATION"] = str(screenshot_path)
if screenshot_filename is not None:
environment["TEXTUAL_SCREENSHOT_FILENAME"] = str(screenshot_filename)
if show_return:
Expand Down

0 comments on commit 14f9fb2

Please sign in to comment.