Skip to content

Commit

Permalink
Use unix linsep for python function output
Browse files Browse the repository at this point in the history
  • Loading branch information
peterneher committed Feb 6, 2019
1 parent ae4e63a commit 715d2a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmdint/CmdInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ def __pyfunction_to_log(self):
kwargs=self.__options)
proc.start()
while proc.is_alive():
self.__log['command']['text_output'] = out_string.getvalue().split(os.linesep)
self.__log['command']['text_output'] = out_string.getvalue().split('\n')
self.update_log()
time.sleep(5)
self.__py_function_return = proc.get_retval()
Expand All @@ -453,7 +453,7 @@ def __pyfunction_to_log(self):
exception = 'Exception: ' + str(err)
sys.stdout = original_stdout
sys.stderr = original_stderr
self.__log['command']['text_output'] = out_string.getvalue().split(os.linesep)
self.__log['command']['text_output'] = out_string.getvalue().split('\n')
if exception is not None:
self.__log['command']['text_output'].append(exception)
self.update_log()
Expand Down

0 comments on commit 715d2a1

Please sign in to comment.