Support for comments

This commit is contained in:
Tomek Wójcik 2024-01-19 21:11:21 +01:00
parent 1d4ca55f2a
commit 96a20b9278
2 changed files with 3 additions and 1 deletions

View File

@ -52,7 +52,8 @@ proc readPart(path: Path): seq[string] =
try:
var line: string = readLine(pathFile)
while line != "":
result.add(line)
if line.startsWith("#") == false:
result.add(line)
line = readLine(pathFile)
except EOFError as exception:
discard

View File

@ -1 +1,2 @@
/Users/bilbo/opt/bin
#/Users/bilbo/.local/bin