Skip to content

Commit

Permalink
Remove LocalChannel userhome attribute (#3678)
Browse files Browse the repository at this point in the history
This is part of staged dissolution of LocalChannel as part of #3515
channel removal.

# Changed Behaviour

Removed (but I think generally unused) functionality and configuration
option

## Type of change

- New feature
- Code maintenance/cleanup
  • Loading branch information
benclifford authored Nov 7, 2024
1 parent d6c24ea commit 6852e8e
Showing 1 changed file with 1 addition and 4 deletions.
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

0 comments on commit 6852e8e

Please sign in to comment.