[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: Bug or feature?



Hi guys --

Yeah, I like John's suggestion to use the RC files also.  My little
wrinkle is that I prefer to put the variable into gafrc instead of
gnetlistrc.  Gafrc is read by all programs, and is (in principle)
being phased-in while the individual RC files are being phased out.  

In any event, all programs will read the individual RC files for a
while yet.  The individual RC files -- particularly those in ${HOME}
and in the local dir -- are deprecated.

Putting it into gafrc means that the $SPICE_MODEL_DIR can be
interpreted by gschem, gattrib, tragesym, etc. as well as gnetlist.
Not that I know why gattrib would need to know this . . . . . 

Stuart


> 
> 
> $SPICE_MODEL_DIR sounds ok for me.
> 
> I like John suggestion to use an rc file. Except, that I would use gnetlistrc 
> instead of gschemrc. 
> Using the command line option is also ok for me. 
> 
> 
> Peter
> 
> 
> 
> Am Sonntag, 24. Juli 2005 21:34 schrieb Stuart Brorson:
> > Hi Guys --
> >
> > > >Another suggestion:
> > > >
> > > >Would it be possible to define (preferences) a default directory for
> > > >models and subcircuits? That way it would not be necessary to define the
> > > >entire path in each of the components. To remain compatible, I'd suggest
> > > >that 'file' attributes starting with / be absolute, else use the default
> > > >directory.
> > >
> > > 	I'll let Stuart answer this as he is more familiar with models
> > > and subcircuits.
> >
> > Personally, I like Peter Kaiser's suggestion (elsewhere in this
> > thread) to use an environment variable to set the default SPICE model
> > directory. I suggest the following:  $SPICE_MODEL_DIR.  Then,
> > spice-sdb would look in the environment to see if this variable is
> > set.  If so, it uses it.  If not, it reverts to ${HOME}.  If that
> > fails (i.e. the specified files aren't found), spice-sdb can exit(-1)
> > and spew an error message telling the user to set $SPICE_MODEL_DIR and
> > try again.
> >
> > I can also set another command line flag --spice-model-dir which acts
> > like setting the default SPICE model directory through the environment
> > variable $SPICE_MODEL_DIR.  Then you would invoke spice-sdb like this:
> >
> > gnetlist -v -g spice-sdb --spice-model-dir /home/BillGates/spice-models
> > circuit.sch
> >
> > Any comments, suggestions, or objections?
> >
> > Stuart
> 
>