Skip to content

Commit 7e93d05

Browse files
committed
avoid recursive profile_config -> self.config references
1 parent b19baa0 commit 7e93d05

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ipyparallel/cluster/cluster.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,11 @@ def _profile_config_default(self):
304304

305305
self.log.debug(f"Loading profile {self.profile_dir}")
306306
# set profile dir via config
307-
self.config.ProfileDir.location = self.profile_dir
307+
config = Config()
308+
config.ProfileDir.location = self.profile_dir
308309

309310
# load profile config via IPCluster
310-
app = IPClusterStart(parent=self, log_level=10)
311+
app = IPClusterStart(config=config, log=self.log, log_level=10)
311312
# adds profile dir to config_files_path
312313
app.init_profile_dir()
313314
# adds system to config_files_path

0 commit comments

Comments
 (0)