From 6bf64b0ae8f864c4182cc8371b20053923f044f7 Mon Sep 17 00:00:00 2001 From: Gust Date: Tue, 3 Nov 2015 11:17:40 -0200 Subject: [PATCH] Add check if widgets settings file exists --- colab/utils/conf.py | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/colab/utils/conf.py b/colab/utils/conf.py index 9f8daa8..a0a369a 100644 --- a/colab/utils/conf.py +++ b/colab/utils/conf.py @@ -151,6 +151,9 @@ 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) -- libgit2 0.21.2