diff --git a/importcode.src b/importcode.src index 162a578..6702631 100644 --- a/importcode.src +++ b/importcode.src @@ -19,7 +19,7 @@ handleFileImports = function(pathSrc) //-- handle relative imports if text[:2] == "./" then text = parent_path(pathSrc)+text[2:] //-- handle non-dot relative imports - if text[0] != "/" then text = parent_path(pathSrc)+"/"+text[1:] + if text[0] != "/" then text = parent_path(pathSrc)+"/"+text //-- handle nested imports if text[-4:]==".src" then result = handleFileImports(text)