It works when you add `discard`:
import nimpy
let sys = pyImport("sys")
discard sys.path.insert(0, ".")
RunThe problem with the original code is that Nim does not allow return values to be implicitly discarded.
