From ae659639986a00735bef43c3287aea1ff617904a Mon Sep 17 00:00:00 2001 From: "David M. Raker" Date: Thu, 23 Jan 2025 16:03:38 -0800 Subject: [PATCH] Added keyword argument to super call in VolttronHomeFileReloader to support watchdog versions >=5.0.0. --- volttron/utils/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/volttron/utils/__init__.py b/volttron/utils/__init__.py index e236d5185f..2ca1dd71ac 100644 --- a/volttron/utils/__init__.py +++ b/volttron/utils/__init__.py @@ -104,7 +104,7 @@ def __init__(self, filetowatch, callback): # Protect from circular reference for file from volttron.platform import get_home - super(VolttronHomeFileReloader, self).__init__([get_home() + '/' + filetowatch]) + super(VolttronHomeFileReloader, self).__init__(patterns=[get_home() + '/' + filetowatch]) _log.debug("patterns is {}".format([get_home() + '/' + filetowatch])) self._callback = callback @@ -125,7 +125,7 @@ class AbsolutePathFileReloader(PatternMatchingEventHandler): filetowatch *.json will watch all json files in """ def __init__(self, filetowatch, callback): - super(AbsolutePathFileReloader, self).__init__([filetowatch]) + super(AbsolutePathFileReloader, self).__init__(patterns=[filetowatch]) self._callback = callback self._filetowatch = filetowatch