From 00a72e0afbee3626a7ba54b0079465ff135193ac Mon Sep 17 00:00:00 2001 From: Joost Ellerbroek Date: Mon, 18 Mar 2024 10:04:40 +0100 Subject: [PATCH] Fix print error with pathlib Path --- bluesky/stack/basecmds.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bluesky/stack/basecmds.py b/bluesky/stack/basecmds.py index a450ff144c..7c24c94b6b 100644 --- a/bluesky/stack/basecmds.py +++ b/bluesky/stack/basecmds.py @@ -212,7 +212,7 @@ def initbasecmds(): "ECHO": [ "ECHO txt", "string", - bs.scr.echo, + lambda *args: bs.scr.echo(*args), "Show a text in command window for user to read", ], "FF": [ @@ -452,7 +452,7 @@ def setscenpath(newpath): newpath = bs.resource(settings.scenario_path) / newpath if not newpath.is_dir(): - return False, "Error: cannot find path: " + newpath + return False, "Error: cannot find path: " + newpath.as_posix() # Change path settings.scenario_path = newpath