hound suggestions

This commit is contained in:
Jakub Jezek 2021-10-27 15:44:49 +02:00
parent 40142effb6
commit 1f5b8132ed
No known key found for this signature in database
GPG key ID: D8548FBF690B100A
2 changed files with 6 additions and 6 deletions

View file

@ -59,15 +59,15 @@ def _sync_utility_scripts(env=None):
if next(iter(os.listdir(flame_shared_dir)), None):
for _itm in os.listdir(flame_shared_dir):
skip = False
# skip all scripts and folders which are not maintained
if _itm not in remove_black_list:
skip = True
# do not skyp if pyc in extension
if not os.path.isdir(_itm) and "pyc" in os.path.splitext(_itm)[-1]:
skip = False
# continue if skip in true
if skip:
continue

View file

@ -107,14 +107,14 @@ all menu objects as apps.
"""
try:
import flame
import flame # noqa
app_initialized(parent=None)
except ImportError:
print("!!!! not able to import flame module !!!!")
def rescan_hooks():
import flame
import flame # noqa
flame.execute_shortcut('Rescan Python Hooks')
@ -143,7 +143,7 @@ def _build_app_menu(app_name):
'menu_auto_refresh', {})
if menu_auto_refresh.get('timeline_menu', True):
try:
import flame
import flame # noqa
flame.schedule_idle_event(rescan_hooks)
except ImportError:
print("!-!!! not able to import flame module !!!!")