Skip to content

Commit

Permalink
[bug] js compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
Keisuke Izumiya committed Sep 30, 2024
1 parent 0548159 commit 93fbb39
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/pon2pkg/private/misc.nim
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@ import

const
Pon2RootDirCandidate = currentSourcePath().parentDir.parentDir.parentDir
Pon2NimbleFileCandidate = Pon2RootDirCandidate / "pon2.nimble"
Pon2NimbleFile =
when Pon2NimbleFileCandidate.lastPathPart.startsWith "pon2":
Pon2NimbleFileCandidate
Pon2RootDir =
when Pon2RootDirCandidate.lastPathPart.startsWith "pon2":
Pon2RootDirCandidate
else:
Pon2RootDirCandidate.parentDir / "pon2.nimble"
Pon2Version* =
staticRead(Pon2NimbleFile).newStringStream.loadConfig.getSectionValue("", "version")
Pon2RootDirCandidate.parentDir
Pon2Version* = staticRead(Pon2RootDir / "pon2.nimble").newStringStream.loadConfig
.getSectionValue("", "version")

# ------------------------------------------------
# Warning-suppress Version
Expand Down

0 comments on commit 93fbb39

Please sign in to comment.