aboutsummaryrefslogtreecommitdiffstats
path: root/common/__init__.py
blob: 89977d24678f5d0bfcf3952e83bd976f3e18f167 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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