From 2f651585b92986e89f6f810c17b69db5f31f4395 Mon Sep 17 00:00:00 2001 From: Alexandre Barbosa Date: Thu, 5 Nov 2015 12:52:00 -0200 Subject: [PATCH] Fix widget import mudule --- colab/utils/conf.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/colab/utils/conf.py b/colab/utils/conf.py index 6613de6..ad2d068 100644 --- a/colab/utils/conf.py +++ b/colab/utils/conf.py @@ -151,12 +151,11 @@ def load_widgets_settings(): if not os.path.exists(py_path): return - if not os.path.exists(settings_file): - return - original_path = sys.path sys.path.append(py_path) - importlib.import_module(settings_module) + + if os.path.exists(settings_file): + importlib.import_module(settings_module) # Read settings from widgets.d settings_dir = os.getenv('COLAB_WIDGETS', '/etc/colab/widgets.d') -- libgit2 0.21.2