From 463500b86c0e33d17e0c0b4886dcde1f2ef1c908 Mon Sep 17 00:00:00 2001 From: Norman Clarke Date: Fri, 22 Oct 2010 19:22:13 +0200 Subject: [PATCH] use source instead of short_src, since the last one is for display purposes only --- specs/run.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/run.lua b/specs/run.lua index 43dcaa2..664df9a 100755 --- a/specs/run.lua +++ b/specs/run.lua @@ -1,7 +1,7 @@ #!/usr/bin/env lua -- command should be specs/run.lua -local command = debug.getinfo(1).short_src:gsub('\\', '/') +local command = debug.getinfo(1).source:match("@(.*)$"):gsub('\\', '/') if command ~= 'specs/run.lua' then error('You must run the specs like this: specs/run.lua (or specs\\run.lua for windows)')