From: vsr Date: Thu, 31 Jul 2008 04:01:57 +0000 (+0000) Subject: Fix issue 0019952: problem with symbolic link creation X-Git-Tag: TG_TRIPOLI_qt4_porting~30 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=408032e221585a366d877ce9452c0138fb0c57d0;p=modules%2Fkernel.git Fix issue 0019952: problem with symbolic link creation --- diff --git a/bin/runSalome.py b/bin/runSalome.py index 2a8aa66b1..aae7d0dfa 100755 --- a/bin/runSalome.py +++ b/bin/runSalome.py @@ -793,7 +793,10 @@ def searchFreePort(args, save_config=1): import shutil shutil.copyfile(omniorb_config, last_running_config) else: - os.remove(last_running_config) + try: + os.remove(last_running_config) + except OSError: + pass os.symlink(omniorb_config, last_running_config) pass pass