Skip to content

Commit

Permalink
Remove LocalChannel userhome attribute
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.
  • Loading branch information
benclifford committed Nov 7, 2024
1 parent 6dd5845 commit f5a1f95
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 f5a1f95

Please sign in to comment.