]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Using "USER" env variable on LINUX and "Username" variable on WIN32 WPdev
authorabd <abd@opencascade.com>
Wed, 1 Nov 2006 15:33:39 +0000 (15:33 +0000)
committerabd <abd@opencascade.com>
Wed, 1 Nov 2006 15:33:39 +0000 (15:33 +0000)
bin/nameserver.py

index cb977be89e77a68695be1ac72731d5141e1fde4b..36506881989a12c6fc05f36e93c38f9f932ea60e 100755 (executable)
@@ -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)