![]() This is a possibility but I highly discourage you from doing so. ![]() Click "advanced" in the property panel of the shortcut, and click the option "run as administrator"Īnswer contributed by delphifirst in this questionĬ) Changing the permissions on the python executable (Not recommended).Change the shortcut target into something like "C:\path_to\python.exe" C:\path_to\your_script.py".Righ-click the shortcut and select Properties.A small pop-up list containing various administrator tasks will appear.īy doing that you are running as Admin so this problem should not persistī) Creating shortcut with elevated privileges.Press the windows key (between alt and ctrl usually) + X.It will then open the command prompt in the directory C:\Windows\system32.Since in Windows there is no sudo command you have to run the terminal ( cmd.exe) as an administrator to achieve to level of permissions equivalent to sudo. Changing the permissions on the python executable (Not recommended).Creating a shortcut to execute the file with elevated privileges.There are basically three main methods of achieving administrator execution privileges on Windows. ![]() '\nAnd saved where you asked us to save it!!')Ĭan someone tell me what I am doing wrong? 'Your movie has been successfully downloaded!' Tk.messagebox.showwarning('File downloaded', Print(directory, selected_text, place_to_save)Ĭonnect.retrbinary('RETR ' + selected_text, file.write) Place_to_save = directory + '/' + selected_text PermissionError: Permission denied: '/goodbye.txt'ĭirectory = filedialog.askdirectory(parent=root, I'm getting this error : Exception in Tkinter callbackįile "C:\Python34\lib\tkinter\_init_.py", line 1538, in _call_įile "C:/Users/Marc/Documents/Programmation/Python/Llamachat/Llamachat/Llamachat.py", line 32, in download
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |