From: Serge Rehbinder Date: Mon, 14 Nov 2016 14:12:51 +0000 (+0100) Subject: fix for windows: import pwd does not work in win X-Git-Tag: 5.0.0a1~52 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c77032188435393f1415746ec3d00c433468d47e;p=tools%2Fsat.git fix for windows: import pwd does not work in win --- 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):