Update importcode.src
oops 2
This commit is contained in:
parent
0b5fcf74ee
commit
af71f9cc01
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ handleFileImports = function(pathSrc)
|
||||||
|
|
||||||
if text.len < 1 then continue
|
if text.len < 1 then continue
|
||||||
//-- handle relative imports
|
//-- 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
|
//-- handle non-dot relative imports
|
||||||
if text[0] != "/" then text = parent_path(pathSrc)+"/"+text
|
if text[0] != "/" then text = parent_path(pathSrc)+"/"+text
|
||||||
//-- handle nested imports
|
//-- handle nested imports
|
||||||
|
|
|
||||||
Reference in a new issue