From c77032188435393f1415746ec3d00c433468d47e Mon Sep 17 00:00:00 2001 From: Serge Rehbinder Date: Mon, 14 Nov 2016 15:12:51 +0100 Subject: [PATCH] fix for windows: import pwd does not work in win --- src/architecture.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/architecture.py b/src/architecture.py index 75af0e4..b2073b0 100644 --- a/src/architecture.py +++ b/src/architecture.py @@ -21,7 +21,7 @@ In this file : all the stuff that can change with the architecture on which SAT is running ''' -import os, sys, platform, pwd +import os, sys, platform def is_windows(): '''method that checks windows OS @@ -41,6 +41,7 @@ def get_user(): raise Exception('USERNAME environment variable not set') return os.environ['USERNAME'] else: # linux + import pwd return pwd.getpwuid(os.getuid())[0] def _lsb_release(args): -- 2.39.2