diff src/luan/host/WebHandler.java @ 1424:9ab267b9427c

better load_file()
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 22 Nov 2019 22:58:39 -0700
parents 27efb1fcbcb5
children b6030fa18839
line wrap: on
line diff
--- a/src/luan/host/WebHandler.java	Tue Nov 19 17:42:11 2019 -0700
+++ b/src/luan/host/WebHandler.java	Fri Nov 22 22:58:39 2019 -0700
@@ -13,7 +13,6 @@
 import luan.LuanFunction;
 import luan.LuanClosure;
 import luan.LuanRuntimeException;
-import luan.modules.BasicLuan;
 import luan.modules.http.LuanHandler;
 import luan.modules.logging.Log4j;
 
@@ -62,7 +61,7 @@
 	private static void initLuan(Luan luan,String dir,String domain) {
 		security(luan,dir);
 		try {
-			LuanFunction fn = BasicLuan.load_file(luan,"classpath:luan/host/init.luan");
+			LuanFunction fn = Luan.loadClasspath(luan,"luan/host/init.luan");
 			fn.call(dir,domain);
 		} catch(LuanException e) {
 			throw new LuanRuntimeException(e);