View Single Post
  #3  
Old 03-27-2003, 11:56 AM
hotspur1 hotspur1 is offline
Member
 
Join Date: Mar 2003
Location: Cambridge, MA
Posts: 54
Well, one example of what I'd like to do is pass the name of another file that I'd like my Vizard script to open and write to. So if I typed the following, for example:

>"C:\Program Files\Vizard\bin\Vizard.exe" myscript.py -r out.dat

Then somewhere in myscript.py, I could use sys.argv to retrieve the filename (out.dat) then open it to write some data to it, for example.

Maybe the way to go is like the typical UNIX args, which call for something like

>Vizard.exe -r myscript.py -a arg1 arg2 ...

where -r indicates the script that should be run, and -a indicates additional arguments that should be passed to the script.

Thanks
Andy
Reply With Quote