On Sunday, April 8, 2018 at 1:55:42 AM UTC+2, Michael Droogleever wrote: > > I think it is this, but I have not tried running your code: > > >> sys.path.insert(0, path.join(path.dirname(__file__))) > > > is what adds the path to your importers package, to the system path. So the > > import importers.mybank >> > > Needs to be after it. It is admittedly not correct python style, as > imports should always come first, but it is a workaround beancount uses to > be able to read your custom code. > > Good luck. >
Indeed, with that change it doesn't complain about imports now, thank you! Apparently the same can be achieved by setting PYTHONPATH. Now to figure out why nothing happens when I run bean-extract -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscr...@googlegroups.com. To post to this group, send email to beancount@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/32737949-89a6-4fb2-80ed-ba8189931e6e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.