ADG Lua 

ADG Lua Commit Details

Date:2013-04-01 14:51:22 (6 years 5 months ago)
Author:Nicola Fontana
Branch:master
Commit:57ce499055f02fcdf133fbb19c66e0ad7d178424
Parents: 1ad62736595f42385550683cfeb6af346bd99e54
Message:adg-web: load piston.lua from $(dirname adg-web.lua)

Changes:
Madg-web.lua (1 diff)

File differences

adg-web.lua
2121
2222
2323
24
25
26
27
28
29
30
31
32
33
2434
2535
26
36
37
2738
2839
2940
]]
-- Convenient function to load scripts from the same directory
-- of this very same file
local function local_require(filename)
local FILE = arg[0]
local basedir = FILE and FILE:match('^(.*/).*$') or './'
local filename = basedir .. filename .. '.lua'
return assert(loadfile(filename)())
end
local lgi = require 'lgi'
local Adg = lgi.require 'Adg'
local Piston = require 'piston'
local Piston = local_require 'piston'
-- Command line parsing

Archive Download the corresponding diff file

Branches

Tags