diff options
Diffstat (limited to 'common/__init__.py')
-rw-r--r-- | common/__init__.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/common/__init__.py b/common/__init__.py new file mode 100644 index 0000000..89977d2 --- /dev/null +++ b/common/__init__.py @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 +''' common functions and stuff ''' + +import os + + +QUEUE = bool(os.environ.get('el_QUEUE', False)) + +# Initialize queue +if QUEUE is True: + from .queue import dbi +else: + from .postgres import dbi |