# HG changeset patch # User Sam # Date 1687695464 -25200 # Node ID 7cf908571ec8fd27c17d8d7fdc4121b1f4749034 # Parent ac72df379e1d13bd9122d56c86fea88496b4e4f1 fix: wrong relative path diff -r ac72df379e1d -r 7cf908571ec8 src/semicongine/core/buildconfig.nim --- a/src/semicongine/core/buildconfig.nim Sun Jun 25 19:03:57 2023 +0700 +++ b/src/semicongine/core/buildconfig.nim Sun Jun 25 19:17:44 2023 +0700 @@ -7,8 +7,9 @@ const ENGINENAME* = "semicongine" const ENGINEVERSION* = static: - var nimbleFile = newStringStream(staticRead("../../../semicongine.nimble")) - var config = loadConfig(nimbleFile) + let nimblePath = currentSourcePath.parentDir().parentDir().parentDir().parentDir().joinPath("semicongine.nimble") + let nimbleFile = newStringStream(staticRead(nimblePath)) + let config = loadConfig(nimbleFile) config.getSectionValue("", "version")