Skip to content

Commit

Permalink
use env var for CIMEROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Jun 30, 2021
1 parent 41f946b commit 9202ce5
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 15 deletions.
4 changes: 4 additions & 0 deletions buildlib.csm_share_cpl7
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env python3
import sys,os
cimeroot = os.getenv("CIMEROOT")
sys.path.append(os.path.join(cimeroot,"scripts","Tools"))

from standard_script_setup import *
from CIME.utils import copyifnewer, run_bld_cmd_ensure_logging, expect, symlink_force
from CIME.case import Case
Expand Down
2 changes: 1 addition & 1 deletion components/data_comps_mct/datm/cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import os, sys, glob

_CIMEROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..","..","..","..","..")
_CIMEROOT = os.getenv("CIMEROOT")
sys.path.append(os.path.join(_CIMEROOT, "scripts", "Tools"))

from standard_script_setup import *
Expand Down
2 changes: 1 addition & 1 deletion components/data_comps_mct/desp/cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import os, sys, glob

_CIMEROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..","..","..","..","..")
_CIMEROOT = os.getenv("CIMEROOT")
sys.path.append(os.path.join(_CIMEROOT, "scripts", "Tools"))

from standard_script_setup import *
Expand Down
2 changes: 1 addition & 1 deletion components/data_comps_mct/dice/cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import os, sys, glob

_CIMEROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..","..","..","..","..")
_CIMEROOT = os.getenv("CIMEROOT")
sys.path.append(os.path.join(_CIMEROOT, "scripts", "Tools"))

from standard_script_setup import *
Expand Down
2 changes: 1 addition & 1 deletion components/data_comps_mct/dlnd/cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import os, sys, glob

_CIMEROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..","..","..","..","..")
_CIMEROOT = os.getenv("CIMEROOT")
sys.path.append(os.path.join(_CIMEROOT, "scripts", "Tools"))

from standard_script_setup import *
Expand Down
2 changes: 1 addition & 1 deletion components/data_comps_mct/docn/cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import os, sys, glob, re

_CIMEROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..","..","..","..","..")
_CIMEROOT = os.getenv("CIMEROOT")
sys.path.append(os.path.join(_CIMEROOT, "scripts", "Tools"))

from standard_script_setup import *
Expand Down
2 changes: 1 addition & 1 deletion components/data_comps_mct/drof/cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import os, sys, glob

_CIMEROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..","..","..","..","..")
_CIMEROOT = os.getenv("CIMEROOT")
sys.path.append(os.path.join(_CIMEROOT, "scripts", "Tools"))

from standard_script_setup import *
Expand Down
2 changes: 1 addition & 1 deletion components/data_comps_mct/dwav/cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import os, sys, glob

_CIMEROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..","..","..","..","..")
_CIMEROOT = os.getenv("CIMEROOT")
sys.path.append(os.path.join(_CIMEROOT, "scripts", "Tools"))

from standard_script_setup import *
Expand Down
2 changes: 1 addition & 1 deletion components/xcpl_comps_mct/xatm/cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build data model library

import sys, os

_CIMEROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..","..","..","..","..")
_CIMEROOT = os.getenv("CIMEROOT")
sys.path.append(os.path.join(_CIMEROOT, "scripts", "Tools"))

from standard_script_setup import *
Expand Down
2 changes: 1 addition & 1 deletion components/xcpl_comps_mct/xglc/cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build data model library

import sys, os

_CIMEROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..","..","..","..","..")
_CIMEROOT = os.getenv("CIMEROOT")
sys.path.append(os.path.join(_CIMEROOT, "scripts", "Tools"))

from standard_script_setup import *
Expand Down
2 changes: 1 addition & 1 deletion components/xcpl_comps_mct/xice/cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build data model library

import sys, os

_CIMEROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..","..","..","..","..")
_CIMEROOT = os.getenv("CIMEROOT")
sys.path.append(os.path.join(_CIMEROOT, "scripts", "Tools"))

from standard_script_setup import *
Expand Down
2 changes: 1 addition & 1 deletion components/xcpl_comps_mct/xlnd/cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build data model library

import sys, os

_CIMEROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..","..","..","..","..")
_CIMEROOT = os.getenv("CIMEROOT")
sys.path.append(os.path.join(_CIMEROOT, "scripts", "Tools"))

from standard_script_setup import *
Expand Down
2 changes: 1 addition & 1 deletion components/xcpl_comps_mct/xocn/cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build data model library

import sys, os

_CIMEROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..","..","..","..","..")
_CIMEROOT = os.getenv("CIMEROOT")
sys.path.append(os.path.join(_CIMEROOT, "scripts", "Tools"))

from standard_script_setup import *
Expand Down
2 changes: 1 addition & 1 deletion components/xcpl_comps_mct/xrof/cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build data model library

import sys, os

_CIMEROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..","..","..","..","..")
_CIMEROOT = os.getenv("CIMEROOT")
sys.path.append(os.path.join(_CIMEROOT, "scripts", "Tools"))

from standard_script_setup import *
Expand Down
2 changes: 1 addition & 1 deletion components/xcpl_comps_mct/xwav/cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build data model library

import sys, os

_CIMEROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..","..","..","..","..")
_CIMEROOT = os.getenv("CIMEROOT")
sys.path.append(os.path.join(_CIMEROOT, "scripts", "Tools"))

from standard_script_setup import *
Expand Down
2 changes: 1 addition & 1 deletion driver/cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import os, sys, glob, itertools, re

_CIMEROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..","..","..","..")
_CIMEROOT = os.getenv("CIMEROOT")
sys.path.append(os.path.join(_CIMEROOT, "scripts", "Tools"))

from standard_script_setup import *
Expand Down

0 comments on commit 9202ce5

Please sign in to comment.