We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42f4cbc commit c7aa19fCopy full SHA for c7aa19f
src/nimib/paths.nim
@@ -1,4 +1,7 @@
1
-import "$nim/compiler/pathutils"
+when defined(FreeBSD):
2
+ import "$nim/lib/compiler/pathutils"
3
+else:
4
+ import "$nim/compiler/pathutils"
5
export pathutils
6
import os, strutils, hashes
7
@@ -53,4 +56,4 @@ template withDir*(dir: AbsoluteDir, body: untyped): untyped =
53
56
proc getExt*(filename: string): string =
54
57
let i = filename.searchExtPos
55
58
if i > 0 and filename.len > i:
- result = filename[(i+1) .. ^1]
59
+ result = filename[(i+1) .. ^1]
0 commit comments