X-Authentication-Warning: delorie.com: mail set sender to geda-help-bounces using -f X-Recipient: geda-help AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=YTXrloDylXIupskH6eQWI4uxwOggYI9hSWUxFzDNdUM=; b=m+mAMFptPcrAAidzq1VTS7FC+8r39bvcKkaTSrYuBaXwnbIB6t+2NJoWak7Uw/wUgw +dTen8Fej0Le/QzG+7MrOaHtBeDkn2kceEe8SLJ3LQQ/KDnRAqdxU60GYrnQIsXeeVel Ho1EET9YZQkMWZh3KYlIFs2I7ijKifZNrMk6v8/aaYieL+f6wcC4P3o1eipYrMYiryQX EC3KsNOuuc9qOQQgmYiLqFAvnyhwSfwR9KclzikJSE+N3R/4QuB0QaVdxlbndYzbnQqp ylb3ebK+LWGkeFvPyryph2NyJjMieNikPbj3bz1UKygorhkzZegI1R7NKABpASQUo2Ce A3Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to; bh=YTXrloDylXIupskH6eQWI4uxwOggYI9hSWUxFzDNdUM=; b=sHqAkZfDf5pJn2yz+c8KAUSNkpD14HGIC27kYrQDVYKB0mO7Asx6Mplyruqrn98cuE VGaIVe9YtwipDkgctx7xehowu7a7c2lxmTmGYGC2GuXInITKGwXyNVLu5boA29u22ABV PQlf2mLyoi5UC9C69AcY37drrE7bGblix6pmw8AW0Dku1n98wYW9z7E3gdvh9SrDQ5BX hGiOBkdwOr1QRKVwmFw8+IJEKfIcE318iSFBcxkfjeTE6RnvR0zWXrjvtIE9tn9SQSF4 ktWloJigkZjsNbzEnzcfvkpxY8ZjfdlpP4NE1Wn3R0ttsV78nP36WRxZ0y38oODm2rWC d/Ug== X-Gm-Message-State: AOAM530dGM1hC+pPezfRx4tbLJPLURwgJQOL8KwndjA+gMobPtoRTA5e Paum7NoWX7MhuCjs8T9S10nJDWxaTf0= X-Google-Smtp-Source: ABdhPJzSFV6CcltFqMuNj2POwlYEW3CbyUzeE3OD5Oe3qxLFjeLZ1u9VgyRbc5x38Hn06VajuQ8M7Q== X-Received: by 2002:a2e:a496:: with SMTP id h22mr33028846lji.138.1625902245702; Sat, 10 Jul 2021 00:30:45 -0700 (PDT) From: "Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via geda-help AT delorie DOT com]" X-Google-Original-From: Vladimir Zhbanov Date: Sat, 10 Jul 2021 10:30:44 +0300 To: geda-help AT delorie DOT com Subject: Re: [geda-help] Can we specify a file/netlist-library path in the gafrc file? Message-ID: Mail-Followup-To: geda-help AT delorie DOT com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Reply-To: geda-help AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-help AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Hi Hyral, On Fri, Jul 09, 2021 at 08:32:16PM +0900, hyral.sacai (hyral DOT sacai AT gmail DOT com) [via geda-help AT delorie DOT com] wrote: ... > Or is there some clever alternative? For example, I tried setting an > environmental variable containing the path of where I keep the netlists, > and then tried specifying the variable as part of the default file > attribute value of the symbol (e.g. ${NETLIST_PATH}/some-netlist.cir) but > unfortunately, gnetlist couldn't expand the variable. In Lepton, and just in this case, you can use `(source-library "${NETLIST_PATH}/anything...)` commands in gafrc. Probably, you can do the same in geda-gaf. I've just fixed my buggy source-library-search() for expanding env variables, though the fix is not yet in repository. This command can be used to add directories to source library recursively, that is, with all their non-empty subdirs. If any of those commands is present in your gafrc, you don't have to use absolute paths. Just 'file=cirname.cir' is sufficient for lepton-netlist and others utilities could find the files. -- Vladimir