From a7abe84b380450bc5e40e9199c026292a5b9de3b Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Thu, 8 Sep 2022 09:35:03 -0500 Subject: [PATCH] Fix openmc.config when OPENMC_CROSS_SECTIONS is not set --- openmc/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/config.py b/openmc/config.py index fe7c5aa06e..628df7edc1 100644 --- a/openmc/config.py +++ b/openmc/config.py @@ -65,7 +65,7 @@ def _default_config(): # Set depletion chain chain_file = os.environ.get("OPENMC_CHAIN_FILE") if (chain_file is None and - config['cross_sections'] is not None and + config.get('cross_sections') is not None and config['cross_sections'].exists() ): # Check for depletion chain in cross_sections.xml