#!/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