Update importcode.src
This commit is contained in:
parent
1098990620
commit
151753bb4e
1 changed files with 3 additions and 1 deletions
|
|
@ -17,7 +17,9 @@ handleFileImports = function(pathSrc)
|
|||
|
||||
if text.len < 1 then continue
|
||||
//-- handle relative imports
|
||||
if text[0] == "." then text = parent_path(pathSrc)+text[1:]
|
||||
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:]
|
||||
//-- handle nested imports
|
||||
if text[-4:]==".src" then
|
||||
result = handleFileImports(text)
|
||||
|
|
|
|||
Reference in a new issue