[BangPypers] Managing variable in small scripts.
Mukesh Yadav
mak.gnu at gmail.com
Wed Feb 19 11:07:00 CET 2014
Hi,
I normally create small scripts for crons, Sometime I do create multiple
modules.
My question is how to pass same variable to modules which is being used.
e.g.
script.py file contans following code
*import module *
*bucket* = 'some_bucket'
object = module.*Class_name*('value');
object.*some_awesome_function*()
I want bucket variable should be available in *some_awesome_function. *
How to achieve above?
--
Regards
Mukesh Yadav
mukeshyadav.com
More information about the BangPypers
mailing list