Saving parameters between Python applications?

Stodge stodge at gmail.com
Mon Sep 17 14:38:52 CEST 2007


Good idea, but I can't guarantee that the two scripts will be run from
the same directory - so where to store the pickle?

On Sep 16, 5:25 pm, "Sebastian Bassi" <sba... at clubdelarazon.org>
wrote:
> On 9/16/07, Stodge <sto... at gmail.com> wrote:
>
> > python app1.py --location=c:\test1
> > What I want to do is save the location parameter, so I can then do (in
> > the same window):
> > python app2.py
> > And have app2.py automatically have access to the value of "location".
>
> Do app1.py to save a pickle of the value you want app2 to read.
>
> --
> Sebastián Bassi (       ). Diplomado en Ciencia y Tecnología.
> Curso Biologia molecular para programadores:http://tinyurl.com/2vv8w6
> GPG Fingerprint: 9470 0980 620D ABFC BE63 A4A4 A3DE C97D 8422 D43D




More information about the Python-list mailing list