# HG changeset patch # User Sam # Date 1687695464 -25200 # Node ID 7179286183447d1ee7cc44b1d84d60db3ca085b8 # Parent d7b7f62923000c2b378588487f9ad0651523a078 fix: wrong relative path diff -r d7b7f6292300 -r 717928618344 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")