summaryrefslogtreecommitdiff
path: root/rtems.py
diff options
context:
space:
mode:
authorChristian Mauderer <christian.mauderer@embedded-brains.de>2018-06-06 09:48:04 +0200
committerChris Johns <chrisj@rtems.org>2019-01-05 15:54:27 +1100
commit6fb91e232bc668a8c62ffcf74853027d629ef7ca (patch)
tree0a02551547d41f4c5c6ced170d2b4095cd2710c6 /rtems.py
parentcb70dfe969b04789900034ac9964fce0dae33c8a (diff)
Fix --show-commands.
In the current version of libbsd, if the --show-commands option is used, the cwd is passed as a Nod3. Popen does not work with that. Therefore create a string from cwd if it isn't already.
Diffstat (limited to 'rtems.py')
-rw-r--r--rtems.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/rtems.py b/rtems.py
index 6907709..a88c679 100644
--- a/rtems.py
+++ b/rtems.py
@@ -579,6 +579,8 @@ def output_command_line():
else:
cmdstr = ' '.join(cmd)
Logs.info('(%d) %s' % (len(cmdstr), cmdstr)) # here is the change
+ if not isinstance(kw['cwd'], str):
+ kw['cwd'] = str(kw['cwd'])
Logs.debug('runner_env: kw=%s' % kw)
try:
if self.logger: