MH portable

If you have problems understanding something or getting started, ask here

Moderator: joepal

MH portable

Postby Gonzo » Fri Jun 24, 2016 1:01 pm

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
Gonzo
 
Posts: 4
Joined: Fri Jun 24, 2016 10:25 am

Re: MH portable

Postby Aranuvir » Fri Jun 24, 2016 2:47 pm

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.
Aranuvir
 
Posts: 1317
Joined: Sun Oct 12, 2014 2:12 pm

Re: MH portable

Postby badwolf » Fri Jun 24, 2016 4:02 pm

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
badwolf
 
Posts: 272
Joined: Fri Feb 06, 2015 12:41 am

Re: MH portable

Postby Gonzo » Sat Jun 25, 2016 11:28 am

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.


Thanks for answering. :)

I found the 'settings.ini' under 'My Documents/makehuman/V1/'

If I overwrite "loaddir": .. in the 'settings.ini' to a defined folder on the stick it should work? :(

Gonzo :D
Attachments
screenshot v1.jpg
Last edited by Gonzo on Sat Jun 25, 2016 12:17 pm, edited 2 times in total.
Gonzo
 
Posts: 4
Joined: Fri Jun 24, 2016 10:25 am

Re: MH portable

Postby Gonzo » Sat Jun 25, 2016 11:30 am

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


Thanks for the answer :D
Gonzo
 
Posts: 4
Joined: Fri Jun 24, 2016 10:25 am

Re: MH portable

Postby Aranuvir » Sat Jun 25, 2016 1:44 pm

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.
Aranuvir
 
Posts: 1317
Joined: Sun Oct 12, 2014 2:12 pm

Re: MH portable

Postby duststorm » Mon Jun 27, 2016 11:45 am

Gonzo wrote:If I overwrite "loaddir": .. in the 'settings.ini' to a defined folder on the stick it should work?

No it will not.
Aranuvir's answer is the correct one. You need to modify the getPath() and getSystemPath() methods.
MakeHuman™ developer
User avatar
duststorm
 
Posts: 2569
Joined: Fri Jan 27, 2012 11:57 am
Location: Belgium

Re: MH portable

Postby Aranuvir » Mon Jun 27, 2016 1:55 pm

Hi Duststorm,

nice to see you're around the forum from time to time.

I felt free to make a feature request on the bugtracker for a portable version of MH.
Aranuvir
 
Posts: 1317
Joined: Sun Oct 12, 2014 2:12 pm

Re: MH portable

Postby joepal » Mon Jun 27, 2016 2:52 pm

Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4627
Joined: Wed Jun 04, 2008 11:20 am

Re: MH portable

Postby Gonzo » Tue Jun 28, 2016 8:08 am

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.



Hi.

Thanks for the answers you gave. It's very kind. :)

Have fun,

Gonzo
Gonzo
 
Posts: 4
Joined: Fri Jun 24, 2016 10:25 am

Next

Return to Newbies

Who is online

Users browsing this forum: Google [Bot] and 2 guests