From 6852e8e0d6833b0da6d51a719abfcd312e56f782 Mon Sep 17 00:00:00 2001 From: Ben Clifford Date: Thu, 7 Nov 2024 13:25:02 +0000 Subject: [PATCH] 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 --- parsl/channels/local/local.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/parsl/channels/local/local.py b/parsl/channels/local/local.py index e6266713ef..8e1f50b181 100644 --- a/parsl/channels/local/local.py +++ b/parsl/channels/local/local.py @@ -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() @@ -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