import std/[paths,sets,syncio, strutils] let cwd = getCurrentDir() var lines: HashSet[string] init lines while not stdin.endOfFile: var line = stdin.readLine let f = line.find(" (" & $cwd) if f != -1: line = line[0 .. f] lines.incl line.replace(" / ", "/").replace("/", " OR ") var outf = open("LICENSE.dependencies", fmWrite) for line in lines: outf.writeLine line # urgent help needed, my code is too slow