diff options
Diffstat (limited to 'compiler/nimeval.nim')
-rw-r--r-- | compiler/nimeval.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/nimeval.nim b/compiler/nimeval.nim index f20b5642c..841c38a46 100644 --- a/compiler/nimeval.nim +++ b/compiler/nimeval.nim @@ -11,7 +11,7 @@ import ast, astalgo, modules, passes, condsyms, options, sem, semdata, llstream, vm, vmdef, - modulegraphs, idents, os + modulegraphs, idents, os, pathutils type Interpreter* = ref object ## Use Nim as an interpreter with this object @@ -103,8 +103,8 @@ proc createInterpreter*(scriptName: string; registerPass(graph, evalPass) for p in searchPaths: - conf.searchPaths.add(p) - if conf.libpath.len == 0: conf.libpath = p + conf.searchPaths.add(AbsoluteDir p) + if conf.libpath.isEmpty: conf.libpath = AbsoluteDir p var m = graph.makeModule(scriptName) incl(m.flags, sfMainModule) |