Salome HOME
DCQ : Merge with Ecole_Ete_a6.
[modules/kernel.git] / bin / orbmodule.py
index bd8e73b7836539e3ac54315d09ccde09dd898c09..a96bc98474421374d75f781c0d150a8916c83177 100755 (executable)
@@ -21,7 +21,13 @@ class Server:
 
 class NamingServer(Server):
    XTERM=""
-   CMD="runNS.sh > /tmp/salomeNS.log 2>&1"
+   USER=os.getenv('USER')
+   if USER is None:
+      USER='anonymous'
+   os.system("mkdir -m 777 -p /tmp/logs")
+   LOGDIR="/tmp/logs/" + USER
+   os.system("mkdir -m 777 -p " + LOGDIR)
+   CMD="runNS.sh > " + LOGDIR + "/salomeNS.log 2>&1"
 
 # -----------------------------------------------------------------------------