diff --git a/src/pathsd.nim b/src/pathsd.nim index a6f6f3c..d7cb728 100644 --- a/src/pathsd.nim +++ b/src/pathsd.nim @@ -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 diff --git a/tests/fixtures/paths.d/01-bilbo b/tests/fixtures/paths.d/01-bilbo index b097f03..c3cd82e 100644 --- a/tests/fixtures/paths.d/01-bilbo +++ b/tests/fixtures/paths.d/01-bilbo @@ -1 +1,2 @@ /Users/bilbo/opt/bin +#/Users/bilbo/.local/bin