forked from mirrors/thatmattlove-hyperglass
fix current user method
This commit is contained in:
parent
ed24ef73be
commit
6c1f9321f9
1 changed files with 2 additions and 2 deletions
|
|
@ -1,8 +1,8 @@
|
|||
"""CLI Command definitions."""
|
||||
|
||||
# Standard Library
|
||||
import os
|
||||
import sys
|
||||
from getpass import getuser
|
||||
from pathlib import Path
|
||||
|
||||
# Third Party
|
||||
|
|
@ -144,7 +144,7 @@ def setup(unattended):
|
|||
move_files(example_dir, install_path, files)
|
||||
|
||||
if install_path == user_path:
|
||||
user = os.getlogin()
|
||||
user = getuser()
|
||||
else:
|
||||
user = "root"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue