fixed plugin error message

This commit is contained in:
vabene1111 2023-07-03 05:55:12 +02:00
parent 766ed31f8e
commit 1e85c8587b

View File

@ -128,9 +128,11 @@ INSTALLED_APPS = [
'treebeard',
]
PLUGINS_DIRECTORY = os.path.join(BASE_DIR, 'recipes', 'plugins')
PLUGINS = []
try:
for d in os.listdir(os.path.join(BASE_DIR, 'recipes', 'plugins')):
if os.path.isdir(PLUGINS_DIRECTORY):
for d in os.listdir():
if d != '__pycache__':
try:
apps_path = f'recipes.plugins.{d}.apps'