[Tutor] Arguments ina separate file

Tim Michelsen timmichelsen at gmx-topmail.de
Mon Apr 21 20:58:04 CEST 2008


> I have a big list of arguments, which I would like to
> keep in a  separate file. How do I pass arguments that
> are in a  separate file?
do you mean like setting?

do something like this
write them in the file myargs.py


import myargs

call_my_function(myargs.argument1, myargs.argument2)

see also my recent thread on settings called
"setting program configuration for all files and modules of	a program"

Regards,
Timmie



More information about the Tutor mailing list