From 8d186d39483beff64a1c11f80c6ca5e56dd7bbc5 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Wed, 1 Feb 2023 20:32:11 +0100 Subject: moving and renaming/breaking everything --- scripts/common/__init__.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 scripts/common/__init__.py (limited to 'scripts/common/__init__.py') diff --git a/scripts/common/__init__.py b/scripts/common/__init__.py new file mode 100644 index 0000000..89977d2 --- /dev/null +++ b/scripts/common/__init__.py @@ -0,0 +1,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 -- cgit v1.2.3