use source instead of short_src, since the last one is for display purposes only

This commit is contained in:
Norman Clarke 2010-10-22 19:22:13 +02:00 committed by Enrique García
parent 1f5db8c397
commit 463500b86c

View File

@ -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)')