Skip to content

Commit 80de8b0

Browse files
committed
Pass substrings blacklist from machine config to DirWatcher when initialising it
1 parent 17a725d commit 80de8b0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/murfey/client/multigrid_control.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,13 @@ def rsync_result(update: RSyncerUpdate):
468468
session_id=self._environment.murfey_session,
469469
data=rsyncer_data,
470470
)
471-
self._environment.watchers[source] = DirWatcher(source, settling_time=30)
471+
self._environment.watchers[source] = DirWatcher(
472+
source,
473+
settling_time=30,
474+
substrings_blacklist=self._machine_config.get(
475+
"substrings_blacklist", {"directories": [], "files": []}
476+
),
477+
)
472478

473479
if not self.analysers.get(source) and analyse:
474480
log.info(f"Starting analyser for {source}")

0 commit comments

Comments
 (0)