blob: f6c02d3a82f7d50b82f720ffb0af053e1fe78eea (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/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
|