fix scripts I broke with the extension tab changes

This commit is contained in:
AUTOMATIC
2022-10-31 18:40:47 +03:00
parent dc7425a56e
commit 58cc03edd0
2 changed files with 1 additions and 4 deletions

View File

@@ -46,7 +46,7 @@ class Extension:
res = []
for filename in sorted(os.listdir(dirpath)):
res.append(scripts.ScriptFile(dirpath, filename, os.path.join(dirpath, filename)))
res.append(scripts.ScriptFile(self.path, filename, os.path.join(dirpath, filename)))
res = [x for x in res if os.path.splitext(x.path)[1].lower() == extension and os.path.isfile(x.path)]