Skip to content

Commit c180e23

Browse files
committed
Change method for getting default user name, some sudo versions working with getpass
1 parent 4024049 commit c180e23

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

testgres/defaults.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import datetime
2-
import getpass
32
import os
43
import struct
54
import uuid
@@ -18,7 +17,7 @@ def default_username():
1817
Return default username (current user).
1918
"""
2019

21-
return getpass.getuser()
20+
return os.getlogin()
2221

2322

2423
def generate_app_name():

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy