4.1.1. sciexp2.exprun.spur.LocalShell¶
Methods
close(self) |
|
open(self, name[, mode]) |
|
run(self, \*args, \*\*kwargs) |
|
spawn(self, \*args, \*\*kwargs) |
|
temporary_dir(self) |
|
upload_dir(self, source, dest[, ignore]) |
|
upload_file(self, source, dest) |
|
write_file(self, remote_path, contents) |
Attributes
files |
-
class
LocalShell¶ Bases:
spur.local.LocalShellAn extended version of
spur.LocalShell.It will properly kill all created processes when exiting.
The
runandspawnmethods have two new arguments:exit_on_error: bool, optional- Whether to exit the program when the process fails to execute.
kill: list of str, optional- Command to execute when killing the process. Useful when process is run with sudo.
-
run(self, *args, **kwargs)¶
-
spawn(self, *args, **kwargs)¶