fix broken js

This commit is contained in:
Vladimir Mandic
2023-04-18 10:06:55 -04:00
parent 2711e32c2e
commit e8d8dae4c7
5 changed files with 22 additions and 28 deletions
+1 -3
View File
@@ -196,9 +196,7 @@ def list_scripts(scriptdirname, extension):
with open(os.path.join(base, "..", ".priority"), "r", encoding="utf-8") as f:
priority = str(f.read().strip())
for filename in sorted(os.listdir(base)):
_fn, ext = os.path.splitext(filename)
if ext == '.py':
scripts_list.append(ScriptFile(paths.script_path, filename, os.path.join(base, filename), priority))
scripts_list.append(ScriptFile(paths.script_path, filename, os.path.join(base, filename), priority))
for ext in extensions.active():
scripts_list += ext.list_files(scriptdirname, extension)