diff --git a/examples/config.nims b/examples/config.nims index e36139c..1023586 100644 --- a/examples/config.nims +++ b/examples/config.nims @@ -1 +1,6 @@ ---path:"../src" \ No newline at end of file +switch("path", "$projectDir/../src") + +import std/os + +const explicitSourcePath {.strdefine.} = getCurrentCompilerExe().parentDir.parentDir +switch "path", explicitSourcePath \ No newline at end of file diff --git a/tests/config.nims b/tests/config.nims index baad1a8..1023586 100644 --- a/tests/config.nims +++ b/tests/config.nims @@ -1,2 +1,6 @@ ---path:"../src" -switch("mm", "refc") \ No newline at end of file +switch("path", "$projectDir/../src") + +import std/os + +const explicitSourcePath {.strdefine.} = getCurrentCompilerExe().parentDir.parentDir +switch "path", explicitSourcePath \ No newline at end of file