Skip to content

Commit

Permalink
XONSH_TRACE_SUBPROC returns more useful details.
Browse files Browse the repository at this point in the history
  • Loading branch information
a authored and jnoortheen committed Apr 26, 2024
1 parent c52ddd5 commit d1f043e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions xonsh/procs/specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -895,12 +895,11 @@ def run_subproc(cmds, captured=False, envs=None):
r = {"cmds": cmds, "captured": captured}
print(f"Trace run_subproc({repr(r)}):", file=sys.stderr)
for i, s in enumerate(specs):
cls = s.cls.__module__ + "." + s.cls.__name__
pcls = s.cls.__module__ + "." + s.cls.__name__
pcmd = [s.args[0].__name__] + s.args[1:] if callable(s.args[0]) else s.args
p = {
"cmd": [s.args[0].__name__] + s.args[1:]
if callable(s.args[0])
else s.args,
"cls": cls,
"cmd": pcmd,
"cls": pcls,
"alias": s.alias_name,
"bin": s.binary_loc,
"thread": s.threadable,
Expand Down

0 comments on commit d1f043e

Please sign in to comment.