Skip to content

Commit 65ab700

Browse files
committed
rimport and relink now get default root dirs from shared.py.
1 parent 28e27a7 commit 65ab700

3 files changed

Lines changed: 13 additions & 8 deletions

File tree

relink.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@
1212
import time
1313
from pathlib import Path
1414

15-
DEFAULT_INPUTDATA_ROOT = "/glade/campaign/cesm/cesmdata/cseg/inputdata/"
16-
DEFAULT_STAGING_ROOT = (
17-
"/glade/campaign/collections/gdex/data/d651077/cesmdata/inputdata/"
18-
)
15+
from shared import DEFAULT_INPUTDATA_ROOT, DEFAULT_STAGING_ROOT
1916

2017
# Set up logger
2118
logger = logging.getLogger(__name__)

rimport

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ import sys
1616
from pathlib import Path
1717
from typing import Iterable, List
1818

19-
DEFAULT_INPUTDATA_ROOT = Path("/glade/campaign/cesm/cesmdata/cseg/inputdata")
20-
DEFAULT_STAGING_ROOT = Path(
21-
"/glade/campaign/collections/gdex/data/d651077/cesmdata/inputdata"
22-
)
19+
import shared
20+
21+
DEFAULT_INPUTDATA_ROOT = Path(shared.DEFAULT_INPUTDATA_ROOT)
22+
DEFAULT_STAGING_ROOT = Path(shared.DEFAULT_STAGING_ROOT)
2323
STAGE_OWNER = "cesmdata"
2424

2525

shared.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"""
2+
Things shared between rimport and relink
3+
"""
4+
5+
DEFAULT_INPUTDATA_ROOT = "/glade/campaign/cesm/cesmdata/cseg/inputdata/"
6+
DEFAULT_STAGING_ROOT = (
7+
"/glade/campaign/collections/gdex/data/d651077/cesmdata/inputdata/"
8+
)

0 commit comments

Comments
 (0)