Skip to content

Commit

Permalink
Added keyword argument to super call in VolttronHomeFileReloader to s…
Browse files Browse the repository at this point in the history
…upport watchdog versions >=5.0.0.
  • Loading branch information
davidraker committed Jan 24, 2025
1 parent e0cbf32 commit ae65963
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions volttron/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -125,7 +125,7 @@ class AbsolutePathFileReloader(PatternMatchingEventHandler):
filetowatch *.json will watch all json files in <volttron_home>
"""
def __init__(self, filetowatch, callback):
super(AbsolutePathFileReloader, self).__init__([filetowatch])
super(AbsolutePathFileReloader, self).__init__(patterns=[filetowatch])
self._callback = callback
self._filetowatch = filetowatch

Expand Down

0 comments on commit ae65963

Please sign in to comment.