Page 1 of 1

MHAPI revisited

PostPosted: Thu Jun 09, 2016 7:06 am
by joepal
I don't know if any of you remember the MHAPI project that was discussed quite a while ago. The idea was to make MH coding more approachable by providing a coherent and accessible API instead of requiring everyone to dig into the internals the first they do.

Well, the old attempt didn't amount to much, so I started from scratch again now and re-implemented it as a plugin which registers a global.

The results so far can be seen here: https://github.com/makehumancommunity/c ... /README.md

I started small this time and will keep adding calls as and when it seems someone needs them or I'm in the mood.

Re: MHAPI revisited

PostPosted: Fri Jun 10, 2016 2:52 am
by badwolf
can i put a corresponding SET version of getUserDataPath(subpath = "") in the list of requested functions??


i could see a Portable Version having a plugin that

1 sets the user data to either a secondary data folder (say udata) or the "system" data folder
2 copies/merges the user data folder over (if needed)

Re: MHAPI revisited

PostPosted: Fri Jun 10, 2016 8:43 am
by joepal
That's a good idea. But it wouldn't help to just do it in MHAPI, it would still require the corresponding change in lib/getpath.py unless something really obscure is done.

With obscure I mean overwriting module member function pointers from outside code, which I'm not even sure is possible.