036c52f0b ^
1 2 3 4 5 6 7 8 9 10
import os proc findlib: string = let path = getEnv("MYLIB_DOES_NOT_EXIST_PATH") if path.len > 0 and dirExists(path): path / "alib_does_not_matter.dll" else: "alib_does_not_matter.dll" proc imported_func*(a: cint): cstring {.importc, dynlib: findlib().}