parsl.channels.LocalChannel¶
-
class
parsl.channels.LocalChannel(userhome='.', envs={}, script_dir=None)[source]¶ This is not even really a channel, since opening a local shell is not heavy and done so infrequently that they do not need a persistent channel
-
__init__(userhome='.', envs={}, script_dir=None)[source]¶ Initialize the local channel. script_dir is required by set to a default.
- KwArgs:
userhome (string): (default=’.’) This is provided as a way to override and set a specific userhome
envs (dict) : A dictionary of env variables to be set when launching the shell
script_dir (string): Directory to place scripts
Methods
__init__([userhome, envs, script_dir])Initialize the local channel.
abspath(path)Return the absolute path.
close()There’s nothing to close here, and this really doesn’t do anything
execute_wait(cmd[, walltime, envs])Synchronously execute a commandline string on the shell.
isdir(path)Return true if the path refers to an existing directory.
makedirs(path[, mode, exist_ok])Create a directory.
pull_file(remote_source, local_dir)Transport file on the remote side to a local directory
push_file(source, dest_dir)If the source files dirpath is the same as dest_dir, a copy is not necessary, and nothing is done.
Attributes
script_dirThis is a property.
-