Forum: Poser Python Scripting


Subject: help - Ockham - Jiggle script P7 - location of poser.ini

markschum opened this issue on Feb 26, 2008 · 3 posts


markschum posted Tue, 26 February 2008 at 9:07 PM

Hi all,

I didnt see this anywhere else .

The jiggle script tries to access poser.ini in the program folder and not the application data ./ poser 7 folder.  I made a change to fix it for a friend by simply hardcoding his folder path .

Is there an elegant way in python to access the windows variable for that folder path . ?

No hurry with it .

thanks


svdl posted Tue, 26 February 2008 at 9:20 PM

There is. Import the os module, and use os.environ["APPDATA"]

You'll have to append "/Poser 7" to the result.

The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter

My gallery   My freestuff


markschum posted Tue, 26 February 2008 at 11:50 PM

cool, thanks