]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
CCAR: add idl/salome directory in SALOME application generation
authorcaremoli <caremoli>
Fri, 26 Sep 2008 07:42:46 +0000 (07:42 +0000)
committercaremoli <caremoli>
Fri, 26 Sep 2008 07:42:46 +0000 (07:42 +0000)
bin/virtual_salome.py

index b5280a375b0689aadfe3a95842928a12256ff87c..37c286929c0d21b99a6f8ee87224c3d49c3b887c 100644 (file)
@@ -118,6 +118,7 @@ def link_module(options):
       return
 
     module_bin_dir=os.path.join(module_dir,'bin','salome')
+    module_idl_dir=os.path.join(module_dir,'idl','salome')
     module_lib_dir=os.path.join(module_dir,get_lib_dir(),'salome')
     module_lib_py_dir=os.path.join(module_dir,get_lib_dir(),pyversio,'site-packages','salome')
     module_lib_py_shared_dir=os.path.join(module_dir,get_lib_dir(),pyversio,
@@ -131,6 +132,7 @@ def link_module(options):
     module_sharedoc_tui_dir=os.path.join(module_dir,'share','doc','salome','tui')
 
     bin_dir=os.path.join(home_dir,'bin','salome')
+    idl_dir=os.path.join(home_dir,'idl','salome')
     lib_dir=os.path.join(home_dir,'lib','salome')
     lib_py_dir=os.path.join(home_dir,'lib',pyversio,'site-packages','salome')
     lib_py_shared_dir=os.path.join(home_dir,'lib',pyversio,
@@ -147,6 +149,7 @@ def link_module(options):
 
     if options.clear:
         rmtree(bin_dir)
+        rmtree(idl_dir)
         rmtree(lib_dir)
         rmtree(lib_py_dir)
         rmtree(share_dir)
@@ -165,6 +168,14 @@ def link_module(options):
         print module_bin_dir, " doesn't exist"
         pass    
     
+    #directory idl/salome : create it and link content
+    if os.path.exists(module_idl_dir):
+        mkdir(idl_dir)
+        for fn in os.listdir(module_idl_dir):
+            symlink(os.path.join(module_idl_dir, fn), os.path.join(idl_dir, fn))
+    else:
+        print module_idl_dir, " doesn't exist"
+
     #directory lib/salome : create it and link content
     if os.path.exists(module_lib_dir):
         mkdir(lib_dir)