Skip to content
Snippets Groups Projects
Unverified Commit 274a2e19 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Allow starting without installed apps.

parent e2ebba13
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,12 @@ from typing import Sequence
def get_app_packages() -> Sequence:
""" Find all packages within the biscuit.apps namespace. """
import biscuit.apps
# Import error are non-fatal here because probably simply no app is installed.
try:
import biscuit.apps
except ImportError:
return []
pkgs = ['biscuit.apps.%s' % i[1] for i in pkgutil.iter_modules(biscuit.apps.__path__)]
return pkgs
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment