s again,
Dorit
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> On Behalf Of Marcelo Ramos
> Sent: 16 May 2006 19:51
> To: python-list@python.org
> Subject: Re: How to pass variables between scripts?
>
>
> Gross, Dorit (SDRN) escr
Gross, Dorit (SDRN) escribió:
>>> #! /usr/local/bin/python
>>> # test_exec.py
>>>
>>> import os, sys, glob
>>>
>>> fileList = glob.glob('/data/*.ZIP')
>>>
>>> for f in fileList:
>>> try:
>>> globvars = {'infile' : f}
>>> locvars = {}
>>> execfile('/scripts/s
> >
> > #! /usr/local/bin/python
> > # test_exec.py
> >
> > import os, sys, glob
> >
> > fileList = glob.glob('/data/*.ZIP')
> >
> > for f in fileList:
> > try:
> > globvars = {'infile' : f}
> > locvars = {}
> > execfile('/scripts/second.py', globvars(), loc
Gross, Dorit (SDRN) wrote:
> [snip]
> for f in fileList:
> try:
> globvars = {'infile' : f}
> locvars = {}
> execfile('/scripts/second.py', globvars(), locvars)
> except IOError:
> exit(0)
> print locva
Gross, Dorit (SDRN) escribió:
> Dear list,
>
> I am an absolute newbie to python and would appreciate your help very much
> :)
>
> I am trying to write a little python script that wraps a set of external
> scripts. The external scripts are either also written in python or are simple
> bash scripts.