When i exexute my python script .exe file, I want its shortcut or copy to go to a specific path of my drive using python code
I think that piece code should be like
def become_persistent():
copied_file_location = os.environ["location"] + "\\ my scripts.exe"
if not os.path.exists(copied_file_location):
shutil.copyfile(sys.executable, copied_file_location)