0

When I run os.mkdir() for a certain directory. I can't create a directory. However, I can do so manually (with admin dialog coming on before the creation, this is windows 7 btw). How would I run the os.mkdir() as admin?

Rostyslav Dzinko
  • 39,424
  • 5
  • 49
  • 62
user2315
  • 831
  • 5
  • 11
  • 21
  • Read here: http://stackoverflow.com/questions/130763/request-uac-elevation-from-within-a-python-script – Bakuriu Aug 20 '12 at 19:02

1 Answers1

3

Python is a scripting language. In order to have administrative rights, Python process has to be ran as admin as well. And also, you might be interested in: Request UAC elevation from within a Python script?

Community
  • 1
  • 1