passing values to a program

Eric_Dexter at Eric_Dexter at
Thu Oct 19 15:31:43 CEST 2006

If it is as simple as using the sys and dot befour the argv then I have
it made..  The example I was trying to get that from came from the
first edition programming python (I think they were using version 1.3).
 thanks for the help I will give that a try.

Fredrik Lundh wrote:
> Eric_Dexter at wrote:
> >      I almost have this thing running like I want it to run but I want
> > the values to come from the program that calls this one.  There are two
> > things I want to pass File_Name and CutString.  They both need to go to
> > loadFile routine of Class WordGrid to replace constants.
> note that your code is already using "sys.argv" to read arguments from
> the command line (inside the main function), so obviously you know how
> to do that, and your code is passing arguments around (to both the
> constructor and the main function), so obviously you know how to do that.
> so what's the problem here?  why not just use the mechanisms you already
> know how to use?
> </F>

More information about the Python-list mailing list