| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

OptionalJom.py

Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 
00003 '''An example of a module that can take a command line option.
00004 Run it like:
00005 
00006 nuwa.py -n XXX -m 'DybHelloWorld.OptionalJom [mydouble]'
00007 '''
00008 
00009 def configure(argv=[]):
00010     import DybHelloWorld
00011     dhw = DybHelloWorld.Configure()
00012     dhw.HelloWorldAlg.MyDouble = 6.9
00013     try:
00014         mydouble = float(argv[0])
00015         dhw.HelloWorldAlg.MyDouble = mydouble
00016     except IndexError:
00017         print "DybHelloWorld.OptionalJom: Got no argument, using default"
00018     return
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:09:52 2011 for DybHelloWorld by doxygen 1.4.7