Nov-21-2019, 05:21 PM
(This post was last modified: Nov-21-2019, 05:21 PM by Gribouillis.)
I'd like to know where the error happened in your script. For this you can add the following file
then run your script and report the whole error traceback here again.
os2.py
in the same directory as your script, and at the top of your script, you replace import os
with import os2 as os
,then run your script and report the whole error traceback here again.
# os2.py from os import * import subprocess as sp class CommandFailed(Exception): pass def system(command): try: retcode = sp.call(command, shell=True) if retcode < 0: raise CommandFailed( ('Command was terminated by signal', -retcode, 'Command was', command)) elif retcode: raise CommandFailed( ('Command failed with return code', retcode, 'Command was', command)) return retcode except OSError as e: raise CommandFailed( ('Command failed with OSError', e.args, e.filename, e, 'Command was', command))