Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove LocalChannel userhome attribute #3678

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions parsl/channels/local/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@ class LocalChannel(Channel, RepresentationMixin):
and done so infrequently that they do not need a persistent channel
'''

def __init__(self, userhome=".", envs={}, script_dir=None):
def __init__(self, envs={}, script_dir=None):
''' 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
'''
self.userhome = os.path.abspath(userhome)
self.hostname = "localhost"
self.envs = envs
local_env = os.environ.copy()
Expand Down Expand Up @@ -57,7 +55,6 @@ def execute_wait(self, cmd, walltime=None, envs={}):
cmd,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
cwd=self.userhome,
env=current_env,
shell=True,
preexec_fn=os.setpgrp
Expand Down
Loading