RE: How to pass variables between scripts?

2006-05-17 Thread Gross, Dorit (SDRN)
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

Re: How to pass variables between scripts?

2006-05-16 Thread Marcelo Ramos
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

RE: How to pass variables between scripts?

2006-05-15 Thread Gross, Dorit (SDRN)
> > > > #! /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

Re: How to pass variables between scripts

2006-05-13 Thread Jonathan Smith
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

Re: How to pass variables between scripts?

2006-05-12 Thread Marcelo Ramos
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.