gnucash 2.7.1: ERROR: Unbound variable: gnc-build-dotgnucash-path

2017-11-19 Thread Sébastien de Menten
Not sure if it is a bug with gnucash 2.7.1, but I can't use
the gnc-build-dotgnucash-path in the config.user as I get an unbound
variable.
any clue?
is this the right list for questions re gnucash 2.7.1 or should I use the
gnucash-user ML ?
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: gnucash 2.7.1: ERROR: Unbound variable: gnc-build-dotgnucash-path

2017-11-19 Thread John Ralls


> On Nov 19, 2017, at 6:20 AM, Sébastien de Menten  wrote:
> 
> Not sure if it is a bug with gnucash 2.7.1, but I can't use
> the gnc-build-dotgnucash-path in the config.user as I get an unbound
> variable.
> any clue?
> is this the right list for questions re gnucash 2.7.1 or should I use the
> gnucash-user ML ?

It’s renamed to gnc-build-userdata-path. See 
libgnucash/core-utils/core-utils.scm.

Depends on the question. API questions usually belong here.

Regards,
John Ralls

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: gnucash 2.7.1: ERROR: Unbound variable: gnc-build-dotgnucash-path

2017-11-19 Thread Sébastien de Menten
Ok, thanks for the clarification.

On Nov 19, 2017 16:05, "John Ralls"  wrote:

>
>
> > On Nov 19, 2017, at 6:20 AM, Sébastien de Menten 
> wrote:
> >
> > Not sure if it is a bug with gnucash 2.7.1, but I can't use
> > the gnc-build-dotgnucash-path in the config.user as I get an unbound
> > variable.
> > any clue?
> > is this the right list for questions re gnucash 2.7.1 or should I use the
> > gnucash-user ML ?
>
> It’s renamed to gnc-build-userdata-path. See libgnucash/core-utils/core-
> utils.scm.
>
> Depends on the question. API questions usually belong here.
>
> Regards,
> John Ralls
>
>
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: gnucash 2.7.1: ERROR: Unbound variable: gnc-build-dotgnucash-path

2017-11-19 Thread John Ralls


> On Nov 19, 2017, at 8:28 PM, Sébastien de Menten  wrote:
> 
> btw, how can I keep backward compatibility in this case so that my reports 
> work for both gnucash 2.7/2.8 and gnucash 2.6 ?
> 
> 
> On Sun, Nov 19, 2017 at 5:51 PM, Sébastien de Menten  > wrote:
> Ok, thanks for the clarification. 
> 
> On Nov 19, 2017 16:05, "John Ralls"  > wrote:
> 
> 
> > On Nov 19, 2017, at 6:20 AM, Sébastien de Menten  > > wrote:
> >
> > Not sure if it is a bug with gnucash 2.7.1, but I can't use
> > the gnc-build-dotgnucash-path in the config.user as I get an unbound
> > variable.
> > any clue?
> > is this the right list for questions re gnucash 2.7.1 or should I use the
> > gnucash-user ML ?
> 
> It’s renamed to gnc-build-userdata-path. See 
> libgnucash/core-utils/core-utils.scm.
> 
> Depends on the question. API questions usually belong here.

Please remember to copy the list on all replies.

The pythonic way would be to catch the unbound variable exception and try the 
other one in the handler.

Regards,
John Ralls

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel