From: prascle Date: Mon, 2 Jul 2007 09:04:40 +0000 (+0000) Subject: PR: kill Salome does not work with SALOME application X-Git-Tag: Start_MERGE_MULTIPR_EVOLUTION~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fb749f45c4108dc7f625af9f2c0f7e3314b9d5a3;p=modules%2Fkernel.git PR: kill Salome does not work with SALOME application --- diff --git a/bin/runSalome.py b/bin/runSalome.py index 27d2799af..d39c788dd 100755 --- a/bin/runSalome.py +++ b/bin/runSalome.py @@ -764,12 +764,12 @@ def searchFreePort(args, save_config=1): args['port'] = os.environ['NSPORT'] # if save_config: - import shutil from os import system - -# system('ln -s -f %s %s/.omniORB_last.cfg'%(os.environ['OMNIORB_CONFIG'], home)) - shutil.copyfile( os.environ['OMNIORB_CONFIG'], "%s/.omniORB_last.cfg"%( home ) ); - + if sys.platform == "win32": + import shutil + shutil.copyfile( os.environ['OMNIORB_CONFIG'], "%s/.omniORB_last.cfg"%( home ) ) + else: + system('ln -s -f %s %s/.omniORB_last.cfg'%(os.environ['OMNIORB_CONFIG'], home)) pass # break