diff --git a/lib/boot.ks b/lib/boot.ks index 14a0eec..922a2e7 100644 --- a/lib/boot.ks +++ b/lib/boot.ks @@ -31,14 +31,22 @@ function compileLibs { } for lib in libs { - compile "0:" + lib to "1:" + lib. + local tgt is lib. + if lib:StartsWith("/prog") { + set tgt to lib:Remove(0, 5). + } + compile "0:" + lib to "1:" + tgt. } } function copyLibs { parameter libs. for lib in libs { - copypath("0:" + lib, "1:" + lib). + local tgt is lib. + if lib:StartsWith("/prog") { + set tgt to lib:Remove(0, 5). + } + copypath("0:" + lib, "1:" + tgt). } }