Mercurial Hosting > luan
diff core/src/luan/modules/PackageLuan.java @ 693:ca169567ce07
module URIs must now include ".luan"
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 19 Apr 2016 15:54:11 -0600 |
parents | cdc70de628b5 |
children | b620b8e1010f |
line wrap: on
line diff
--- a/core/src/luan/modules/PackageLuan.java Mon Apr 18 20:40:21 2016 -0600 +++ b/core/src/luan/modules/PackageLuan.java Tue Apr 19 15:54:11 2016 -0600 @@ -45,7 +45,7 @@ if( modName.startsWith("java:") ) { mod = JavaLuan.load(luan,modName.substring(5)); } else { - String src = read(luan,modName,true); + String src = read(luan,modName); if( src == null ) return null; LuanFunction loader = BasicLuan.load(luan,src,modName,null,false); @@ -64,8 +64,8 @@ return mod; } - static String read(LuanState luan,String uri,Boolean addExtension) throws LuanException { - LuanTable t = IoLuan.uri(luan,uri,addExtension); + static String read(LuanState luan,String uri) throws LuanException { + LuanTable t = IoLuan.uri(luan,uri); if( t == null ) return null; LuanFunction existsFn = (LuanFunction)t.get(luan,"exists");