diff --git a/python/dune/perftool/compile.py b/python/dune/perftool/compile.py index 1cfc540a42e72ae64b1d47178c1e8cc34bc28d66..40cd1774413b69d9c5a1d9ebff491aeb11612bf4 100644 --- a/python/dune/perftool/compile.py +++ b/python/dune/perftool/compile.py @@ -6,12 +6,7 @@ Should also contain the entrypoint methods. from __future__ import absolute_import -# Configure loggers import logging.config -from os import path -log_file_path = path.join(path.dirname(path.abspath(__file__)), 'logging.conf') -logging.config.fileConfig(log_file_path) - import loopy @@ -30,8 +25,11 @@ from dune.perftool.pdelab.localoperator import (generate_localoperator_basefile, name_localoperator_file) from dune.perftool.ufl.preprocess import preprocess_form -from os.path import splitext, basename +from os.path import splitext, basename, join, dirname, abspath +# Configure loggers +log_file_path = join(dirname(abspath(__file__)), 'logging.conf') +logging.config.fileConfig(log_file_path) # Disable loopy caching before we do anything else! loopy.CACHING_ENABLED = False