Christopher Allan Webber writes: > Jeroen De Vlieger writes: > >> On Mon, Jan 21, 2013 at 10:22 PM, John Wiegley <[email protected]>wrote: >> >>> >>>>> Zack Williams <[email protected]> writes: >>> >>> > On Mon, Jan 21, 2013 at 3:09 AM, Jeroen De Vlieger <[email protected]> >>> wrote: >>> >> how can I run the python/demo.py? >>> >> >>> >> $ pwd >>> >> ~/CodingProjects/ledger_acprep_build/python >>> >> $ python demo.py >>> >> Traceback (most recent call last): >>> >> File "demo.py", line 10, in <module> >>> >> import ledger >>> >> ImportError: No module named ledger >>> >>> Importing ledger like this only works after you've done a 'make install'. >>> I >>> created the 'python' verb simply for running the Python demo scripts >>> directly >>> out of a build tree. You could also edit your PYTHONPATH and it would work >>> with normal importing that way too. >>> >> And what would need to be included in the pythonpath to make 'import >> ledger' work? >> Where does the ledger python module live? > > I'm also wondering this. It doesn't look like there's any nice ledger > directory that can be added to the pythonpath. I'd expect something > like: > > ./python-lib/ledger/__init__.py > > the "ledger python" verb is also not working here, so not sure how to do > this without doing a make install (which would make keeping up with git > development a bit harder maybe?)
FWIW, was pointed out that I wasn't compiling python support in ledger, apparently :) -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
