aboutsummaryrefslogblamecommitdiffstats
path: root/scripts/common/__init__.py
blob: 3c3ab1e923d64287bc344f86a828a47ae0161db3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                                  
          
 

                                               

                                                          




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