From 1af6846b132af262946cd02bd5293b7b52d29f26 Mon Sep 17 00:00:00 2001 From: abd Date: Wed, 1 Nov 2006 15:33:39 +0000 Subject: [PATCH] Using "USER" env variable on LINUX and "Username" variable on WIN32 --- bin/nameserver.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) -- 2.39.2