Skip to content

Commit

Permalink
Fix print error with pathlib Path
Browse files Browse the repository at this point in the history
  • Loading branch information
jooste committed Mar 18, 2024
1 parent 8c2678a commit 00a72e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bluesky/stack/basecmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 00a72e0

Please sign in to comment.