[BioPython] argv
Danny Yoo
dyoo@acoma.Stanford.EDU
Mon, 12 Aug 2002 09:30:03 -0700 (PDT)
On Sat, 10 Aug 2002, biter bilen wrote:
> i wanted to pass the input and output file names as command line args.
> danny, i couldn't make your method work.:( but i succeeded in doing this
> in DOS under python directory. but isn't there a way to do this within
> the interpreter? i started proramming with python soonly so i may
> sometimes ask stupid questions. sorry for this!
Hi Biter,
Please send replies back to biopython@biopython.org. That way, even if my
mailbox gets clogged, your question will still get through to the rest of
the list.
If you want to set up the argument list while in the interactive
interpreter, you can do this by assigning your customized list to the
'sys.argv' variable. For example:
###
>>> import sys
>>> sys.argv = ['test', 'hello', 'world']
###
By the way, if you have beginning Python questions, you're always welcome
to ask on the Python-Tutor mailing list:
http://mail.python.org/mailman/listinfo/tutor