Fix infinite skill reloading by disabling folder checks
Python 3 modifies the __pycache__ folder which makes the parent folders update their timestamps causing an infinite skill reload
@@ -204,15 +204,6 @@ def _get_last_modified_date(path):
"""
last_date = 0
root_dir, subdirs, files = next(os.walk(path))
- # get subdirs and remove hidden ones
- subdirs = [s for s in subdirs if not s.startswith('.')]
- for subdir in subdirs:
- for root, _, _ in os.walk(join(path, subdir)):
- base = os.path.basename(root)
- # checking if is a hidden path
- if not base.startswith(".") and not base.startswith("/."):
- last_date = max(last_date, os.path.getmtime(root))
-
# check files of interest in the skill root directory
files = [f for f in files
if not f.endswith('.pyc') and f != 'settings.json' and
