#!/usr/bin/env python

import sys
from argparse import ArgumentParser

parser = ArgumentParser(description = 'Dynamo')
parser.add_argument('exprs', metavar = 'EXPR', nargs = '+', help = 'Python expression.')
parser.add_argument('--module', '-m', metavar = 'MODULE', dest = 'module', default = 'common', help = 'Dynamo module.')

args = parser.parse_args()
sys.argv = []

# ouh la la.. But this is the only way to import * from a module..
exec('from %s.configuration import *' % args.module)

for expr in args.exprs:
    print eval(expr)
