I’ve got a simple data file (basic CSV format) that needs to be included in a few freebies I’m working on. Various scripts (both PoserPython and DAZ Script) need read-only access to the file.
The script is currently in Poser’s default /Runtime/Python/Poserscripts/... folder (by default I mean the same place as the poser.exe file - couldn’t see how to pick up other mapped runtimes using PoserPython).
the PoserScript version’s working fine. So’s the DAZ script version, but I’ve currently got the full path to the data file hard-coded. So two questions:
1) How do I access a mapped Poser runtime from DAZ script?
Answer: see Richard’s posts below
2) For users who only have DAZ Studio, and who don’t map Poser runtimes, where would be the best place to put the datafile, and how would I pick up the path?
Answer: I decided to put the datafile in the Scripts folder of whatever DAZ Content directory the user selects. E.g.
Path is just one of the mapped DS Content directories, see Richard’s answers below.