4.1.1. sciexp2.exprun.spur.LocalShell¶
Methods
close() |
|
open(name[, mode]) |
|
run(*args, **kwargs) |
|
spawn(*args, **kwargs) |
|
temporary_dir() |
|
upload_dir(source, dest[, ignore]) |
|
upload_file(source, dest) |
|
write_file(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(*args, **kwargs)¶
-
spawn(*args, **kwargs)¶