diff --git a/importcode.src b/importcode.src index 8ceecec..3d598cb 100644 --- a/importcode.src +++ b/importcode.src @@ -17,7 +17,7 @@ handleFileImports = function(pathSrc) if text.len < 1 then continue //-- handle relative imports - if text[:2] == "./" then text = parent_path(pathSrc)+text[2:] + if text[:2] == "./" then text = parent_path(pathSrc)+text[1:] //-- handle non-dot relative imports if text[0] != "/" then text = parent_path(pathSrc)+"/"+text //-- handle nested imports