Skip to content

Commit

Permalink
Fixes loading default customize
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonb5 committed Jul 3, 2024
1 parent e402e23 commit 76bd8da
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CIME/config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import re
import sys
import glob
Expand All @@ -9,6 +10,8 @@

logger = logging.getLogger(__name__)

DEFAULT_CUSTOMIZE_PATH = os.path.join(utils.get_src_root(), "cime_config", "customize")


class ConfigBase:
def __new__(cls):
Expand Down Expand Up @@ -132,6 +135,10 @@ def print_rst_table(self):


class Config(ConfigBase):
@staticmethod
def load_defaults(cls):
return cls.load(DEFAULT_CUSTOMIZE_PATH)

def __init__(self):
super().__init__()

Expand Down
2 changes: 2 additions & 0 deletions CIME/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,8 @@ def get_cime_default_driver():

config = Config.instance()

config.load_defaults()

if not driver:
driver = config.driver_default

Expand Down

0 comments on commit 76bd8da

Please sign in to comment.