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.LocalShell

An extended version of spur.LocalShell.

It will properly kill all created processes when exiting.

The run and spawn methods 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)