View Single Post
Old 03-27-2003, 10:56 AM
hotspur1 hotspur1 is offline
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" -r out.dat

Then somewhere in, 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 -a arg1 arg2 ...

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

Reply With Quote