Skip to content
Merged
Changes from all commits
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
8 changes: 5 additions & 3 deletions docs/docs.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ import macros, strformat, strutils, sequtils, sets, tables, algorithm

from os import parentDir, getCurrentCompilerExe, DirSep, extractFilename, `/`, setCurrentDir

when (NimMajor, NimMinor, NimPatch) >= (1, 3, 0):
from os import paramCount, paramStr

# NOTE:
# for some time on devel 1.3.x `paramCount` and `paramStr` had to be imported
# os, because they were removed for nimscript. This was reverted in:
# https://github.com/nim-lang/Nim/pull/14658
# For `nimdoc` we still have to import those from `os`!
when defined(nimdoc):
from os import getCurrentDir, paramCount, paramStr

Expand Down