Forum: Poser Python Scripting


Subject: Environment variables - Mac equivalent of APPDATA

3dcheapskate opened this issue on Apr 28, 2020 ยท 7 posts


3dcheapskate posted Tue, 28 April 2020 at 5:55 AM

Perhaps "the Mac equivalent of APPDATA" was the wrong phraseology. In Windows, APPDATA appears to be the place where applications are supposed to save user-specific configuration files, etc. Sothe question'sreally where do Mac applications usually put their user-specific configuration files, etc ?

Regarding file location - the spanner in the works is that the specific datafile in question here is for both* Poser and DAZ Studio.

As I understand things now, because both PoserPython scripts and DAZ Scripts will need to be able to write to the file, it cannot go anywhere that the OS considers to be part of either the Poser or DAZ Studio installation, because the other program would be forbidden from writing to it.

Therefore in Windows a "%APPDATA%/Roaming/3DCheapskate_Pose_DAZ_SmartPlus" folder containing my "SmartPlusData.txt" file seems the best solution at present.

So now I'm really looking for the most sensible place to put my ":3DCheapskate_Pose_DAZ_SmartPlus:SmartPlusData.txt" file on a Mac.

*yes, I really do need (want?) to use exactly the same single file for both Poser and DAZ Studio.

Edit: forgot to add a crosslink to the original thread - How do you avoid UAC problems writing to poser.AppLocation() subfolders ?


The 3Dcheapskate (also available in DAZ and HiveWire3D flavours) occasionally posts sensible stuff. Usually by accident.
And it usually uses Poser 11, with units set to inches. Except when it's using Poser 6 or PP2014, or when its units are set to PNU.