Salome HOME
[bos #32960]
[modules/kernel.git] / bin / addToKillList.py
index ea06c5755cd3cd6675724ade37a2e1359e74ce8b..840763306d6ef3f6f220cc9792d0956cf4ca08bd 100755 (executable)
@@ -78,7 +78,9 @@ def addToKillList(command_pid, command, port=None):
             if verbose(): print("addToKillList: %s : %s" % ( str(command_pid), command ))
             process_ids.append({int(command_pid): [command]})
             dir = os.path.dirname(filedict)
-            if not os.path.exists(dir): os.makedirs(dir, 0o777)
+            if not os.path.exists(dir):
+                from salome_utils import makeDir
+                makeDir(dir)
             with open(filedict,'wb') as fpid:
                 pickle.dump(process_ids, fpid)
         except Exception: