blob: 3c3ab1e923d64287bc344f86a828a47ae0161db3 (
plain) (
tree)
|
|
#!/usr/bin/env python3
''' common functions and stuff '''
import os
import sys
QUEUE = bool(os.environ.get('el_QUEUE', False))
name = os.path.splitext(os.path.split(sys.argv[0])[-1])[0]
# Initialize queue
if QUEUE is True:
from .queue import dbi
else:
from .postgres import dbi
|