Re: [GRASS-dev] [GRASS-SVN] r73692 - grass/trunk/lib/init

2018-11-25 Thread Markus Metz
On Sun, Nov 25, 2018 at 4:06 AM Vaclav Petras wrote: > > > > On Sat, Nov 24, 2018 at 9:58 PM Vaclav Petras wrote: >> >> >> On Sat, Nov 24, 2018 at 5:54 AM Markus Metz < markus.metz.gisw...@gmail.com> wrote: >>> >>> >>> >>> On Thu, Nov 22, 2018 at 11:33 PM Vaclav Petras wrote: >>> >>> > That's al

Re: [GRASS-dev] [GRASS-SVN] r73692 - grass/trunk/lib/init

2018-11-24 Thread Vaclav Petras
On Sat, Nov 24, 2018 at 9:58 PM Vaclav Petras wrote: > > On Sat, Nov 24, 2018 at 5:54 AM Markus Metz > wrote: > >> >> >> On Thu, Nov 22, 2018 at 11:33 PM Vaclav Petras >> wrote: >> >> > That's all correct. There would have to be more to make it the same >> procedure as in grass.py, but eventual

Re: [GRASS-dev] [GRASS-SVN] r73692 - grass/trunk/lib/init

2018-11-24 Thread Vaclav Petras
On Sat, Nov 24, 2018 at 5:54 AM Markus Metz wrote: > > > On Thu, Nov 22, 2018 at 11:33 PM Vaclav Petras > wrote: > > > That's all correct. There would have to be more to make it the same > procedure as in grass.py, but eventually we need to do that. > > > > What I meant to add it to grass.script

Re: [GRASS-dev] [GRASS-SVN] r73692 - grass/trunk/lib/init

2018-11-24 Thread Markus Metz
On Thu, Nov 22, 2018 at 11:33 PM Vaclav Petras wrote: > > > > On Thu, Nov 22, 2018 at 10:57 AM Markus Metz < markus.metz.gisw...@gmail.com> wrote: >> >> >> >> On Thu, Nov 22, 2018 at 3:31 PM Vaclav Petras wrote: >> > >> > >> > >> > On Wed, Nov 21, 2018 at 2:12 PM Martin Landa wrote: >> >> >> >>

Re: [GRASS-dev] [GRASS-SVN] r73692 - grass/trunk/lib/init

2018-11-22 Thread Vaclav Petras
On Thu, Nov 22, 2018 at 10:57 AM Markus Metz wrote: > > > On Thu, Nov 22, 2018 at 3:31 PM Vaclav Petras > wrote: > > > > > > > > On Wed, Nov 21, 2018 at 2:12 PM Martin Landa > wrote: > >> > >> Hi, > >> > >> st 21. 11. 2018 v 20:05 odesílatel napsal: > >> > +# clean the sqlite db > >> >

Re: [GRASS-dev] [GRASS-SVN] r73692 - grass/trunk/lib/init

2018-11-22 Thread Markus Metz
On Thu, Nov 22, 2018 at 3:31 PM Vaclav Petras wrote: > > > > On Wed, Nov 21, 2018 at 2:12 PM Martin Landa wrote: >> >> Hi, >> >> st 21. 11. 2018 v 20:05 odesílatel napsal: >> > +# clean the sqlite db >> > +from grass.script import db as gdb >> > +from grass.script import

Re: [GRASS-dev] [GRASS-SVN] r73692 - grass/trunk/lib/init

2018-11-22 Thread Vaclav Petras
On Wed, Nov 21, 2018 at 2:12 PM Martin Landa wrote: > Hi, > > st 21. 11. 2018 v 20:05 odesílatel napsal: > > +# clean the sqlite db > > +from grass.script import db as gdb > > +from grass.script import core as gcore > > +conn = gdb.db_connection() > > +if

Re: [GRASS-dev] [GRASS-SVN] r73692 - grass/trunk/lib/init

2018-11-21 Thread Martin Landa
Hi, st 21. 11. 2018 v 20:05 odesílatel napsal: > +# clean the sqlite db > +from grass.script import db as gdb > +from grass.script import core as gcore > +conn = gdb.db_connection() > +if conn and conn['driver'] == 'sqlite': > + # check if db exis