Created
February 5, 2012 02:32
-
-
Save pawelz/1742113 to your computer and use it in GitHub Desktop.
Test case for typed script vars in ekg2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vi:fenc=utf-8:sw=2:encoding=utf-8 | |
import ekg | |
def testvars(name, args): | |
ekg.echo('varbool: %i' % ekg.config['varbool']) | |
ekg.echo('varint: %i' % ekg.config['varint']) | |
ekg.echo('varstr: %s' % ekg.config['varstr']) | |
ekg.echo('var: %s' % ekg.config['var']) | |
ekg.variable_add('var', 'abc') | |
ekg.variable_add_bool('varbool', True) | |
ekg.variable_add_int('varint', 55) | |
ekg.variable_add_str('varstr', 'xxx') | |
ekg.command_bind('testvars', testvars) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment