2
I did a little test in Python 2.X to try copying a file from the folder the script is in to the Windows startup folder:
import shutil
import sys, os
startuplocation = get_special_folder_path("CSIDL_STARTUP")
shutil.copy('fototest.jpg', startuplocation)
however, I get the message:
File "copytest.py", line 5, in startuplocation = get_special_folder_path("CSIDL_STARTUP") Nameerror: name 'get_special_folder_path' is not defined.
I started using Python a little while ago and I don’t understand what’s wrong.
The method
get_special_folder_path
belongs to which class? Ai is saying that he is not defined.– gato