3dcheapskate opened this issue on Apr 23, 2020 ยท 38 posts
3dcheapskate posted Wed, 29 April 2020 at 4:23 AM
And another thought:
...
sTmp = os.getenv('APPDATA')
print "%APPDATA% is: ", sTmp
fileaddr = os.path.join(sTmp,'3DCheapskate-Poser-DAZ-SmartPlus','SmartPlusData.txt')
if os.path.exists(fileaddr):
print "DATAFILE LOCATED: ", fileaddr
locatedfile = fileaddr
else:
...
gives me...
%APPDATA% is: C:UsersdAppDataRoaming
DATAFILE NOT FOUND: C:UsersdAppDataRoaming3DCheapskate-Poser-DAZ-SmartPlusSmartPlusData.txt
So I now see a minor problem I hadn't thought of before. I can easily put the default datafile in the required location on my computer. But when I release the updated script (and related stuff) how do I get the default datafile into the correct location on the user's system ?
I see two options:
Tell the user they have to put it there.
Create the file from within my script.
Any thoughts,suggestions, recommendations ?
(and yes, I think this is now getting off-topic from the thread title, which I don'tlike to do. So maybe time to start a new thread.)
The 3Dcheapskate* 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 or something else.
*soon only to be available in two flavours - DAZ and Renderosity