How to send a file as an argument when running another file in Python

Diez B. Roggisch deets_noospaam at web.de
Thu Feb 5 17:13:59 EST 2004


se7en wrote:

> I have this file x.py and I need to execute it with y.met as an
> argument.  Unsure of syntax etc...

import sys
print sys.argv

-- 
Regards,

Diez B. Roggisch



More information about the Python-list mailing list