sqlite3 assumed in python example script account_analysis.py ?
Mark Jenkins
mark at parit.ca
Thu Jan 27 16:36:12 EST 2011
> There is a comment in the script that says it only supports sqlite3 files. The
> way the session is opened does indeed limit the choice of input files to
> sqlite3.
>
> I'm just wondering, why was this done ?
Only to make invoking it on the command line more easy at the time I
wrote it.
> Simply changing the line that opens
> the session from
> gnucash_session = Session("sqlite3://%s" % gnucash_file, is_new=False)
> to
> gnucash_session = Session(gnucash_file, is_new=False)
> would allow the script to open any kind of database backend.
This would require the user to provide the filetype (xml:// or
sqlite3://) on the command line as well.
I don't have a problem with doing it that way either, it was just
laziness when I wrote it.
More information about the gnucash-devel
mailing list