Is it possible to pass CSV Reader Object As Argument to another Python File ???

2011-01-26 Thread bansi
I have following two python scripts -namelookupWrapper.py -namelookup.py The namelookupWrapper.py takes input of "memberId", "memberName" from CLI and has following code snippet idf = sys.argv[1] namef = sys.argv[2] real_script = "C:\\Splunk\\etc\\apps\\search\\bin\\namelookup.py" r = csv.reader

Re: Is it possible to pass CSV Reader Object As Argument to another Python File ???

2011-01-26 Thread bansi
On Jan 26, 11:30 am, Emile van Sebille wrote: > On 1/26/2011 7:51 AM bansi said... > > > > > > > I have following two python scripts > > -namelookupWrapper.py > > -namelookup.py > > > The namelookupWrapper.py takes input of "memberId", &

Re: Is it possible to pass CSV Reader Object As Argument to another Python File ???

2011-01-26 Thread bansi
On Jan 26, 1:31 pm, Chris Rebert wrote: > On Wed, Jan 26, 2011 at 7:51 AM, bansi wrote: > > I have following two python scripts > > -namelookupWrapper.py > > -namelookup.py > > > The namelookupWrapper.py takes input of "memberId", "memberName

Re: Is it possible to pass CSV Reader Object As Argument to another Python File ???

2011-01-26 Thread bansi
On Jan 26, 4:36 pm, Ben Finney wrote: > bansi writes: > > Thanks Chris. Sorry for mis-communicating, the two python scripts are > > dependant in a way that namelookupWrapper.py needs to pass csv record > > object to another python script > > Why have you structured

Re: Is it possible to pass CSV Reader Object As Argument to another Python File ???

2011-01-26 Thread bansi
On Jan 26, 6:25 pm, Ethan Furman wrote: > bansi wrote: > >  > First namelookupWrapper.py running under Python 2.6 accept arguments >  > from stdin and uses csv reader object to read it i.e. >  > r=csv.reader(sys.stdin) >  > >  > And then it has to pass csv re

Re: Is it possible to pass CSV Reader Object As Argument to another Python File ???

2011-01-28 Thread bansi
On Jan 26, 8:31 pm, MRAB wrote: > On 27/01/2011 00:57, bansi wrote: > > > > > > > On Jan 26, 6:25 pm, Ethan Furman  wrote: > >> bansi wrote: > > >>   >  First namelookupWrapper.py running under Python 2.6 accept arguments > >>   >  from

Re: Is it possible to pass CSV Reader Object As Argument to another Python File ???

2011-01-28 Thread bansi
On Jan 28, 9:46 am, bansi wrote: > On Jan 26, 8:31 pm, MRAB wrote: > > > > > > > On 27/01/2011 00:57, bansi wrote: > > > > On Jan 26, 6:25 pm, Ethan Furman  wrote: > > >> bansi wrote: > > > >>   >  First namelookupWrapper.py ru

Re: Is it possible to pass CSV Reader Object As Argument to another Python File ???

2011-01-28 Thread bansi
On Jan 28, 1:52 pm, Benjamin Kaplan wrote: > On Fri, Jan 28, 2011 at 1:33 PM, bansi wrote: > > On Jan 28, 9:46 am, bansi wrote: > >> On Jan 26, 8:31 pm, MRAB wrote: > > >> > On 27/01/2011 00:57, bansi wrote: > > >> > > On Jan 26,

Re: Is it possible to pass CSV Reader Object As Argument to another Python File ???

2011-01-30 Thread bansi
On Jan 28, 4:22 pm, Benjamin Kaplan wrote: > On Fri, Jan 28, 2011 at 3:42 PM, bansi wrote: > > On Jan 28, 1:52 pm, Benjamin Kaplan wrote: > >> On Fri, Jan 28, 2011 at 1:33 PM, bansi wrote: > >> > On Jan 28, 9:46 am, bansi wrote: > >> >> On Jan 2