Minimal Pyre Application
From DANSE
#!/usr/bin/env python
from pyre.applications.Script import Script
class HelloApp(Script):
class Inventory(Script.Inventory):
import pyre.inventory
name = pyre.inventory.str("name", default="world")
def main(self):
print "Hello %s!" % self.inventory.name
return
def __init__(self):
Script.__init__(self, "hello")
return
# main
if __name__ == "__main__":
app = HelloApp()
app.run()
# End of file
