From fb749f45c4108dc7f625af9f2c0f7e3314b9d5a3 Mon Sep 17 00:00:00 2001 From: prascle Date: Mon, 2 Jul 2007 09:04:40 +0000 Subject: [PATCH] PR: kill Salome does not work with SALOME application --- bin/runSalome.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- 2.39.2