Hi.
How can I make MH portable?
If someone can give me an answer how to do it without writing to 'My Documents/makehuman/V1/...
Thank you,
Gonzo
Moderator: joepal
Aranuvir wrote:You will have to rewrite makehuman/lib/getpath.py. Here is the path to the home folder defined, according to the underlying operating system.
BTW this has been asked several times, please use the search function.
badwolf wrote:okay to be detailed in getpath.py
in line 42 is a switch to hardcode a path
beginning in line 88 is where the "magic" bits are
PLEASE NOTE THE LINE NUMBERS ARE FOR THE CURRENT AS OF THIS DATE VERSION
Gonzo wrote:If I overwrite "loaddir": .. in the 'settings.ini' to a defined folder on the stick it should work?
Aranuvir wrote:Sorry, I'm working only linux with a clone from source. I forgot to mention, you will have to download the source code from bitbucket first. (it's python code)
I fear that hardcoding the path as badwolf suggested will make just a "portable light" in the manner that you always have to make sure the letter of the portable drive doesn't change. Portableapps seems to provide an environment variable for this, you will have to read out, so I think you can't avoid rewriting parts of getpath.py. Then rebuild for windows.
Please keep in mind, that these actions most probably will affect the license.
Users browsing this forum: No registered users and 2 guests