First time here? Check out the FAQ!
1

Start debug to run as Administrator on Windows

I wondered whether it's possible to start a python script as Administrator on Windows (in order to manipulate the registry).

qwerty_ww's avatar
234
qwerty_ww
asked 2020-06-29 16:01:17 +0000
Wingware Support's avatar
4.3k
Wingware Support
updated 2020-06-29 18:22:48 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

Right after asking I found a simple solution:

  • Make a copy of python.exe and name it pythonAdmin.exe (or whatever)
  • In the properties/compatibility tab set Run as Administrator

Now you can choose this executable as Python Executable in Project Properties or the launch configuration in Wing.

qwerty_ww's avatar
234
qwerty_ww
answered 2020-06-29 16:04:21 +0000
Wingware Support's avatar
4.3k
Wingware Support
updated 2020-06-29 18:24:15 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer