Page 1 of 1

[SOLVED] Using setuphelpers.my_documents()

Published: September 17, 2018 - 7:37 PM
by stef_b
Good morning,

I am having a problem with the my_documents() function.

My script boils down to this:

Code: Select all

from setuphelpers import *
uninstallkey = []

def install():
filecopyto("un_fichier.csv",makepath(my_documents(),"Folder1","Folder2"))
The problem is that since the script is executed as SYSTEM, my_documents() points to nothing that exists, hence the script execution error.

How can I solve this problem and obtain the current user's documents directory?

Re: Using setuphelpers.my_documents()

Published: September 18, 2018 - 09:45
by agauvrit