Fix showing "__pycache__" in templates menu

This commit is contained in:
Campbell Barton
2019-07-15 19:39:24 +10:00
parent d2a4a03890
commit 761135a284

View File

@@ -240,6 +240,7 @@ class TEXT_MT_templates_py(Menu):
bpy.utils.script_paths("templates_py"), bpy.utils.script_paths("templates_py"),
"text.open", "text.open",
props_default={"internal": True}, props_default={"internal": True},
filter_ext=lambda ext: (ext.lower() == ".py")
) )
@@ -251,6 +252,7 @@ class TEXT_MT_templates_osl(Menu):
bpy.utils.script_paths("templates_osl"), bpy.utils.script_paths("templates_osl"),
"text.open", "text.open",
props_default={"internal": True}, props_default={"internal": True},
filter_ext=lambda ext: (ext.lower() == ".osl")
) )