summaryrefslogtreecommitdiffhomepage
path: root/src/ffluci/debug.lua
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-04-05 18:35:33 +0000
committerSteven Barth <steven@midlink.org>2008-04-05 18:35:33 +0000
commit9ba8d2aea994c832316f111354668f52de831043 (patch)
tree38dbb506c91f71486fef95dc98620c703c7347e0 /src/ffluci/debug.lua
parent348dc7926806ce4cfe8a5bf8a9f63903469e53c8 (diff)
* 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
Diffstat (limited to 'src/ffluci/debug.lua')
-rw-r--r--src/ffluci/debug.lua2
1 files changed, 2 insertions, 0 deletions
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