Mercurial Hosting > luan
comparison src/luan/LuanState.java @ 143:fcb81fa2df0d
handle urls and java resources as files
git-svn-id: https://luan-java.googlecode.com/svn/trunk@144 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 13 Jun 2014 19:04:05 +0000 |
parents | 05f8c21160ef |
children | f99fd64291b3 |
comparison
equal
deleted
inserted
replaced
142:05f8c21160ef | 143:fcb81fa2df0d |
---|---|
141 | 141 |
142 public static LuanState newStandard() { | 142 public static LuanState newStandard() { |
143 try { | 143 try { |
144 LuanState luan = LuanCompiler.newLuanState(); | 144 LuanState luan = LuanCompiler.newLuanState(); |
145 luan.load("Package",PackageLib.LOADER); | 145 luan.load("Package",PackageLib.LOADER); |
146 BasicLib.do_java_resource(luan,"luan/lib/init.luan"); | 146 BasicLib.do_file(luan,"java:luan/lib/init.luan"); |
147 return luan; | 147 return luan; |
148 } catch(LuanException e) { | 148 } catch(LuanException e) { |
149 throw new RuntimeException(e); | 149 throw new RuntimeException(e); |
150 } | 150 } |
151 } | 151 } |