From a8d5c499d49a4b6d392ab06bbfb29798383889a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20S=C3=A9n=C3=A9si?= Date: Mon, 18 Mar 2024 15:48:13 +0100 Subject: [PATCH] Fix doc/conf.py --- doc/conf.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index dad47b6..9647ae3 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -2,8 +2,7 @@ # -*- coding: utf-8 -*- from __future__ import print_function, division, unicode_literals, absolute_import -from env.site_settings import atCNRM, onCiclad -from env.environment import climaf_version + # # CliMAF documentation build configuration file, created by # sphinx-quickstart on Thu Nov 6 23:20:27 2014. @@ -28,6 +27,12 @@ # sys.path.insert(0, os.path.abspath('../climaf')) sys.path.insert(0, os.path.abspath('..')) +# Without next dummy 'if', my editor would move next two lines before +# the sys.path.insert when saving this file ... +if True: + from env.site_settings import atCNRM, onCiclad + from env.environment import climaf_version + # -- General configuration ------------------------------------------------ on_rtd = os.environ.get('READTHEDOCS', None) == 'True'