]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PR: kill Salome does not work with SALOME application
authorprascle <prascle>
Mon, 2 Jul 2007 09:04:40 +0000 (09:04 +0000)
committerprascle <prascle>
Mon, 2 Jul 2007 09:04:40 +0000 (09:04 +0000)
bin/runSalome.py

index 27d2799afa2b78f833ccec7b5556547953f831da..d39c788dd7ac847b0e228238790fbdccbca06f46 100755 (executable)
@@ -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