Canvas Python DAP, custom TEMP FOLDER location

Jump to solution
jasonunf
Community Member

Hello,

Does anybody know how to set up a custom location for the files downloaded by the dap? Basically need to setup the temporary folder in a much larger drive, instead of the dap using the windows default temp folder for each user. I'd like to change this just for the dap instead of changing the default in windows for the least minimal change.

I did find an old post about someone asking about setting this value, which was over a year ago, it was determined that this value needed to be set dap.api.DEFAULT_FOLDER. I'm not sure if this is still accurate in the latest version of the DAP since the apy.py doesnt have this variable anywhere. 

The closest thing i found on the api.py is output_directory

        :param output_directory: Path to the target directory to save downloaded files to.
 
Would someone be able to confirm and maybe share how they customized this value in their implementation? thanks.
 
 

 

Labels (1)
0 Likes
1 Solution
jasonunf
Community Member
Author

Thanks for the replies. Looks like just setting the Temp via python os.environ would be the best approach.

os.environ["TEMP"] = R"F:\Temp\13"

View solution in original post

0 Likes