user1553605
user1553605

Reputation: 1393

pysvn : get current logged in Username

How to get current logged in Username using pysvn API.

We enabled windows authentication(Integrated) in VisualSVN server. So no need to provide username and password to login.

Thanks...

Upvotes: 2

Views: 335

Answers (1)

Steve Barnes
Steve Barnes

Reputation: 28405

Since the pysvn module deals solely with svn you can't - not 100% impossible to fool, (but little is), the following will usually get you the username logged in as asked:

>>> import getpass
>>> getpass.getuser()

Upvotes: 0

Related Questions