Jan-20-2021, 06:47 AM
(Jan-19-2021, 11:15 PM)spaceraiders Wrote: You can use the copytree method from the shutil module.
Usage is as such: shutil.copytree("src", "dst")
import shutil shutil.copytree("src/folder/path/", "dst/folder/path")In your case, the src path should be the path to the assets folder, and the dst path should be the path to your User's AppData folder.
"C:/Users/<Username>/AppData/my_script"
Be warned, however, the path the folder is going to be copied to must not exist. the last segment of the path will become the name of the folder, so in my case, whatever "src/folder/path" leads to, will be copied to "path/to", and the folder will be named "path."
how do i get the directorys, which changes from computer to computer!?