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

Re: gEDA-user: How do I reference a shell variable from guile script?



On Wed, 07 Apr 2010 10:49:14 -0700, Dave N6NZ wrote:

> Suppose I want to build a path like: $HOME/<path>/gedasymbols to pick up
> component libraries, without unrolling $HOME into a hard path in a
> (define..) -- how do I get guile to pick up the value of $HOME from the
> shell, and then get it pasted into the rest of the stuff?
My gafrc uses 
	getenv "HOME"	
to build paths and use it further down the line. For example:

(define symbolspath (build-path (getenv "HOME") "geda" "symbols"))
(component-library (build-path symbolspath "titleblock"))
(component-library (build-path symbolspath "power"))
(...)

---<)kaimartin(>---
-- 
Kai-Martin Knaak                                  tel: +49-511-762-2895
UniversitÃt Hannover, Inst. fÃr Quantenoptik      fax: +49-511-762-2211	
Welfengarten 1, 30167 Hannover           http://www.iqo.uni-hannover.de
GPG key:    http://pgp.mit.edu:11371/pks/lookup?search=Knaak+kmk&op=get



_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user