[SOLVED] Using setuphelpers.my_documents()
Published: September 17, 2018 - 7:37 PM
Good morning,
I am having a problem with the my_documents() function.
My script boils down to this:
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?
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"))How can I solve this problem and obtain the current user's documents directory?