From 6c1f9321f9945063297cdcf3b7b0fc0024baa6c2 Mon Sep 17 00:00:00 2001 From: checktheroads Date: Sat, 15 Feb 2020 16:16:03 -0700 Subject: [PATCH] fix current user method --- hyperglass/cli/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hyperglass/cli/commands.py b/hyperglass/cli/commands.py index 76fc5b3..3b251d9 100644 --- a/hyperglass/cli/commands.py +++ b/hyperglass/cli/commands.py @@ -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"