Exemple #1
0
 def _thread_task():
     with fs.cd(cwd):
         exit_code = __main__.main(["-c"] + args)
     return (
         PIOCoreRPC.thread_stdout.get_value_and_reset(),
         PIOCoreRPC.thread_stderr.get_value_and_reset(),
         exit_code,
     )
Exemple #2
0
 def _call_inline():
     with util.cd(cwd):
         exit_code = __main__.main(["-c"] + args)
     return (PIOCoreRPC.thread_stdout.get_value_and_reset(),
             PIOCoreRPC.thread_stderr.get_value_and_reset(), exit_code)