Permalink
Browse files

snippet to make a wukong script run itself

  • Loading branch information...
1 parent d908490 commit fdcf56186fd164f4d5ca1e0cc1ba70c3c9ffa34d Philip (flip) Kromer committed May 7, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 TODO.textile
View
6 TODO.textile
@@ -3,3 +3,9 @@
** We should be able to specify comma *or* space separated paths; the last
space-separated path in Settings.rest becomes the output file, the others are
used as the input_file list.
+
+ at_exit do
+ if $!.nil? && $0 == Goliath::Application.app_file
+ Application.run!
+ end
+ end

0 comments on commit fdcf561

Please sign in to comment.