From c6654aea08979e7f000b30cee05206e267b9a99d Mon Sep 17 00:00:00 2001 From: Min RK Date: Tue, 31 Jul 2018 12:05:47 +0200 Subject: [PATCH] avoid circular imports --- tljh/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tljh/config.py b/tljh/config.py index 5e5a5aa..e0d3d93 100644 --- a/tljh/config.py +++ b/tljh/config.py @@ -17,7 +17,6 @@ import sys import argparse from ruamel.yaml import YAML from copy import deepcopy -from tljh import systemd, traefik INSTALL_PREFIX = os.environ.get('TLJH_INSTALL_PREFIX', '/opt/tljh') @@ -160,6 +159,8 @@ def reload_component(component): component can be 'hub' or 'proxy'. """ + # import here to avoid circular imports + from tljh import systemd, traefik if component == 'hub': systemd.restart_service('jupyterhub') # FIXME: Verify hub is back up?