2

I have written the post commit hook in python. In my python script i need to call the application by using another user account. Because post commit hook running as empty environment not a user specific.

Is anyway to call application as specific user in subprocess ?

Note that i have used windows amchine.

Thanks in advance.

user1553605
  • 1,333
  • 5
  • 24
  • 42

1 Answers1

0

You can use the runas command to run an application as another user if the pywin32 package is not available in your environment (similar to sudo on *nix).

user931563
  • 94
  • 1
  • 5