]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
link lib/paraview directories properly in salome application V7_4_0rc2
authorvsr <vsr@opencascade.com>
Mon, 26 May 2014 10:45:43 +0000 (14:45 +0400)
committervsr <vsr@opencascade.com>
Mon, 26 May 2014 10:45:43 +0000 (14:45 +0400)
bin/virtual_salome.py [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index cf57771..5ab9924
@@ -133,6 +133,7 @@ def link_module(options):
     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_pvlib_dir=os.path.join(module_dir,get_lib_dir(),'paraview')
     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,
                                           'site-packages','salome')
@@ -148,6 +149,7 @@ def link_module(options):
     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')
+    pvlib_dir=os.path.join(home_dir,'lib','paraview')
     lib_py_dir=os.path.join(home_dir,'lib',pyversio,'site-packages','salome')
     lib_py_shared_dir=os.path.join(home_dir,'lib',pyversio,
                                    'site-packages','salome')
@@ -203,6 +205,18 @@ def link_module(options):
             print module_lib_dir, " doesn't exist"
         pass
 
+    #directory lib/paraview : create it and link content
+    if os.path.exists(module_pvlib_dir):
+        mkdir(pvlib_dir)
+        for fn in os.listdir(module_pvlib_dir):
+            symlink(os.path.join(module_pvlib_dir, fn), os.path.join(pvlib_dir, fn))
+            pass
+        pass
+    else:
+        if verbose:
+            print module_pvlib_dir, " doesn't exist"
+        pass
+        
     #directory lib/pyversio/site-packages/salome : create it and link content
     if not os.path.exists(module_lib_py_dir):
         print "Python directory %s does not exist" % module_lib_py_dir