Skip to content

Commit 14f9fb2

Browse files
committed
fix for screenshots
1 parent f12f5a3 commit 14f9fb2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "textual-dev"
3-
version = "1.5.0"
3+
version = "1.5.1"
44
homepage = "https://github.com/Textualize/textual-dev"
55
description = "Development tools for working with Textual"
66
authors = [

src/textual_dev/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def _run_app(
158158
port: int | None,
159159
press: str | None,
160160
screenshot: int | None,
161-
screenshot_location: pathlib.Path | None,
161+
screenshot_path: pathlib.Path | None,
162162
screenshot_filename: pathlib.Path | None,
163163
extra_args: tuple[str],
164164
command: bool = False,
@@ -210,8 +210,8 @@ def _run_app(
210210
environment["TEXTUAL_PRESS"] = str(press)
211211
if screenshot is not None:
212212
environment["TEXTUAL_SCREENSHOT"] = str(screenshot)
213-
if screenshot_location is not None:
214-
environment["TEXTUAL_SCREENSHOT_LOCATION"] = str(screenshot_location)
213+
if screenshot_path is not None:
214+
environment["TEXTUAL_SCREENSHOT_LOCATION"] = str(screenshot_path)
215215
if screenshot_filename is not None:
216216
environment["TEXTUAL_SCREENSHOT_FILENAME"] = str(screenshot_filename)
217217
if show_return:

0 commit comments

Comments
 (0)