Skip to content

Commit 2dc7284

Browse files
authored
Merge pull request #4 from apple1417/master
swap to read display version from unrealsdk config instead of env var
2 parents 62e8f8b + a225c94 commit 2dc7284

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Readme.md

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ game specific things:
2828
it via the `build_mod` factory, would pass empty lists to the constructor and thus prevent the
2929
auto member collection from running.
3030

31+
- Changed the display version to be sourced from `mod_manager.display_version` in the unrealsdk
32+
config file, rather than an environment variable.
33+
3134
### v1.5
3235
- Added a default `rlm` command, which is a helper to reload Python modules during development.
3336
- Deprecated the `auto_enable` arg in the `@hook` decorator, since it was misleading and in 99% of

mod_list.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def cmp(a: Mod, b: Mod) -> int:
118118
"https://github.com/bl-sdk/oak-mod-manager/releases/"
119119
)
120120

121-
MANAGER_VERSION = os.environ.get("MOD_MANAGER_DISPLAY_VERSION", "Unknown Version")
121+
MANAGER_VERSION = unrealsdk.config.get("mod_manager", {}).get("display_version", "Unknown Version")
122122
RE_MANAGER_VERSION = re.compile(r"v?(\d+)\.(\d+)")
123123

124124

0 commit comments

Comments
 (0)