Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions padre_sharp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@
__version__ = "unknown version"
version_tuple = (0, 0, "unknown version")

import swxsoc
from padre_sharp.util.config import load_config, print_config
from padre_sharp.util.logger import _init_log

# Get SWXSOC_MISSIONS environment variable if it exists or use default for mission
SWXSOC_MISSION = os.getenv("SWXSOC_MISSION", "padre")
os.environ["SWXSOC_MISSION"] = SWXSOC_MISSION
# Force the mission environment variable and reconfigure swxsoc regardless of
# import order (padre_sharp's own config/log below are independent of
# swxsoc's, but other padre_sharp modules read swxsoc.config directly)
os.environ["SWXSOC_MISSION"] = "padre"
swxsoc.reconfigure()
Comment thread
Alrobbertz marked this conversation as resolved.

# Load user configuration
config = load_config()
Expand Down
Loading