Forum: Poser Python Scripting


Subject: Environment variables - Mac equivalent of APPDATA

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


adp001 posted Tue, 28 April 2020 at 11:51 AM

path = os.path.expanduser("~/3Dcheapskate/config.txt")
os.mkdir(os.path.dirname(path))
fh = open(path, "w")
fh.close()

seams to deliver something useful with Windows, under Poser and also with Linux (should be the same with OSX).