]> granicus.if.org Git - graphviz/commitdiff
lua binding now works with a simple "require('gv')"
authorellson <devnull@localhost>
Thu, 24 Apr 2008 01:59:53 +0000 (01:59 +0000)
committerellson <devnull@localhost>
Thu, 24 Apr 2008 01:59:53 +0000 (01:59 +0000)
tclpkg/gv/demo/modgraph.lua

index 7938ca54b5466735c3e9522b920494a3ae21cbf9..719879af92f07d9f755731084b4ed0e599b53686 100755 (executable)
@@ -4,9 +4,7 @@
 
 -- author: John Ellson <ellson@research.att.com>
 
-lib = loadlib('/usr/lib/graphviz/lua/gv.so','Gv_Init')
--- lib = loadlib('/usr/lib64/graphviz/lua/gv.so','Gv_Init')
-assert(lib)()
+require('gv')
 
 modules = io.lines('/proc/modules')