You need to adjust your PYTHONPATH, or put the code somewhere on the PYTHONPATH. You could improve on what you're doing by appending the absolute path to the current PYTHONPATH value.
On Sat, Jan 6, 2018 at 3:29 AM, 'Patrick Ruckstuhl' via Beancount < [email protected]> wrote: > > Hi, > > I'm trying to write my first custom plugin and I'm wondering if there is a > way to set things up so the plugin will be picked up automatically without > having to adjust any environment variables. > > Currently the plugin is in the same location as the beancount files. > > e.g. > > main.beancount > plugins/__init__.py > plugins/my_plugin.py > > if I do > export PYTHONPATH=. > > this works fine > > plugin "plugins.my_plugin" > > But I'm wondering if there is a better way to do this. Ideally something > without requiring to adjust PYTHONPATH. > > How are you dealing with custom plugins? > > Thanks and Regards, > Patrick > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/beancount/47d3216c-20f8-4522-9eb7-c87519af1fa1%40googlegroups.com > <https://groups.google.com/d/msgid/beancount/47d3216c-20f8-4522-9eb7-c87519af1fa1%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhNPu%3Dn9TsH8uu-kH%2BcKVoeMJ%2BOREqHm5qXqWdi2oodPDQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
