by duststorm » Fri Mar 09, 2012 4:19 pm
When no parameters are given the script could automatically search for a few default blender locations. On linux this could be:
/usr/share/blender
/usr/local/share/blender
/opt/blender*/
/opt/Blender*/
...
On windows something like
C:\blender*
C:\Program Files\blender*
You could make it even smarter by trying to let it use environment variables like programs_dir etc.
Additionally, if blender 2.4 is still supported at least, you can make the script guess the version of blender and install the appropriate scripts.
But anyway, users will still have to enable the addons in blender themselves using user preferences.
On the other hand.. One might also wonder whether you really want such *magic* automatic installation.
And will you install to multiple blender installations if you find more than one?
Another option might be to present the user with the found locations, and let him choose those where he wants to install the scripts.
Me, personally, I still like to do it manually myself by just creating symlinks in the version of blender I choose. But it might help a lot of users.
MakeHuman™ developer