Skip to content

Commit 6852e8e

Browse files
authored
Remove LocalChannel userhome attribute (#3678)
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
1 parent d6c24ea commit 6852e8e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

parsl/channels/local/local.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,13 @@ class LocalChannel(Channel, RepresentationMixin):
1616
and done so infrequently that they do not need a persistent channel
1717
'''
1818

19-
def __init__(self, userhome=".", envs={}, script_dir=None):
19+
def __init__(self, envs={}, script_dir=None):
2020
''' Initialize the local channel. script_dir is required by set to a default.
2121
2222
KwArgs:
23-
- userhome (string): (default='.') This is provided as a way to override and set a specific userhome
2423
- envs (dict) : A dictionary of env variables to be set when launching the shell
2524
- script_dir (string): Directory to place scripts
2625
'''
27-
self.userhome = os.path.abspath(userhome)
2826
self.hostname = "localhost"
2927
self.envs = envs
3028
local_env = os.environ.copy()
@@ -57,7 +55,6 @@ def execute_wait(self, cmd, walltime=None, envs={}):
5755
cmd,
5856
stdout=subprocess.PIPE,
5957
stderr=subprocess.PIPE,
60-
cwd=self.userhome,
6158
env=current_env,
6259
shell=True,
6360
preexec_fn=os.setpgrp

0 commit comments

Comments
 (0)