From: abd Date: Wed, 1 Nov 2006 15:33:39 +0000 (+0000) Subject: Using "USER" env variable on LINUX and "Username" variable on WIN32 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FWPdev;p=modules%2Fkernel.git Using "USER" env variable on LINUX and "Username" variable on WIN32 --- diff --git a/bin/nameserver.py b/bin/nameserver.py index cb977be89..365068819 100755 --- a/bin/nameserver.py +++ b/bin/nameserver.py @@ -29,7 +29,11 @@ class NamingServer(Server): #print "Can't create " + os.environ["BaseDir"] + "/logs" pass - upath = os.environ["BaseDir"] + "/logs/" + os.environ["Username"] + upath = os.environ["BaseDir"] + "/logs/"; + if sys.platform == "win32": + upath += os.environ["Username"]; + else: + upath += os.environ["USER"]; try: os.mkdir(upath)