From 9ba8d2aea994c832316f111354668f52de831043 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sat, 5 Apr 2008 18:35:33 +0000 Subject: * Remove ffluci.util.__file__ as it relies on debug information * Added ffluci.debug for things that rely on debug information * Fixed a bug regarding path detection when Luci is bytecompiled --- src/ffluci/debug.lua | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 src/ffluci/debug.lua (limited to 'src/ffluci/debug.lua') diff --git a/src/ffluci/debug.lua b/src/ffluci/debug.lua new file mode 100644 index 0000000000..f1132edcc4 --- /dev/null +++ b/src/ffluci/debug.lua @@ -0,0 +1,2 @@ +module("ffluci.debug", package.seeall) +path = require("ffluci.fs").dirname(debug.getinfo(1, 'S').source:sub(2)) \ No newline at end of file -- cgit v1.2.3