My extension
With the help of Virantha Ekanayake's web site I was able to get my python script bundled and compiled to an mxt file. I am able the run the uncompiled file through the MD2017 built in python interface. But the mxt file hangs when it gets to
"book = moneydance.getCurrentAccountBook()". It doesn't show any kind of an error message. I'm hoping someone can give me an idea of how I can figure out what the error might be.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Sean Reilly on 19 Mar, 2017 10:25 AM
Hello,
In Moneydance we pipe everything that would go to stderr/System.err to a log file that is wiped out after every restart. You can view the contents of that file using the Help->Console Window menu. If you do that, does it show any errors or stack traces?
Thanks!
Sean Reilly
Developer, The Infinite Kind
http://infinitekind.com
mt_head_98 closed this discussion on 20 Mar, 2017 02:19 PM.
mt_head_98 re-opened this discussion on 20 Mar, 2017 02:19 PM
2 Posted by mt_head_98 on 20 Mar, 2017 02:21 PM
Hi Sean
That did the trick. I was able to see the location of the problem and fix it.
Thank you
Rick
mt_head_98 closed this discussion on 20 Mar, 2017 02:21 PM.
mt_head_98 re-opened this discussion on 21 Mar, 2017 03:20 PM
3 Posted by mt_head_98 on 21 Mar, 2017 03:50 PM
Sorry to be a pest. But now that I have my extension working, is there a way to run it when MD 2017 is started? Before I upgraded from MD 2014 I used "-invoke moneydance:fmodule:jpython:runfile?=" to run my script. That does seem to work with 2017, so I thought if I put the script in an extension I could run it with "-invoke moneydance:fmodule:myextension". But that isn't working either.
Support Staff 4 Posted by Sean Reilly on 21 Mar, 2017 04:04 PM
Hi Rick,
If the script is packaged and loaded as an extension (in a .mxt file) then it will be loaded when Moneydance first starts up, and the loader will call the init() method on the extension, which I believe would be the
init(self)
method in your python extension class.Thanks!
Sean Reilly
Developer, The Infinite Kind
http://infinitekind.com
5 Posted by mt_head_98 on 22 Mar, 2017 01:45 AM
Hi Sean
I got it to run at start up using "-invoke moneydance:fmodule:myextensioninit() method :"
Thanks for the help
mt_head_98 closed this discussion on 07 May, 2017 11:15 PM.