X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=bootstrap.py;h=da421b6f0a35dd2c0c269728f71427750e7e6708;hb=7d7a3ce0abb26766e82c6dfed8a196baa63b736a;hp=0d37dcbd7215067ad17801e48e8eafab64c63c61;hpb=3bc4daf1edc121cd633429187392227f2fa61885;p=python_utils.git diff --git a/bootstrap.py b/bootstrap.py index 0d37dcb..da421b6 100644 --- a/bootstrap.py +++ b/bootstrap.py @@ -7,9 +7,10 @@ import sys import time import traceback +# This module is commonly used by others in here and should avoid +# taking any unnecessary dependencies back on them. import argparse_utils import config -import logging_utils logger = logging.getLogger(__name__) @@ -41,6 +42,8 @@ def handle_uncaught_exception( def initialize(funct): + import logging_utils + """Remember to initialize config and logging before running main.""" @functools.wraps(funct) def initialize_wrapper(*args, **kwargs):