From: vsr Date: Mon, 16 Dec 2013 10:15:06 +0000 (+0000) Subject: 0021895: EDF 2372 GEOM SMESH : Generate the doc examples from real python scripts X-Git-Tag: V7_3_0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FV7_3_BR;p=modules%2Fkernel.git 0021895: EDF 2372 GEOM SMESH : Generate the doc examples from real python scripts Apply patch from R.Nedelec (missing examples in virtual application) --- diff --git a/bin/virtual_salome.py b/bin/virtual_salome.py index bf36a4b13..954d7c004 100644 --- a/bin/virtual_salome.py +++ b/bin/virtual_salome.py @@ -143,6 +143,7 @@ def link_module(options): module_sharedoc_dir=os.path.join(module_dir,'share','doc','salome') module_sharedoc_gui_dir=os.path.join(module_dir,'share','doc','salome','gui') module_sharedoc_tui_dir=os.path.join(module_dir,'share','doc','salome','tui') + module_sharedoc_examples=os.path.join(module_dir,'share','doc','salome','examples') bin_dir=os.path.join(home_dir,'bin','salome') idl_dir=os.path.join(home_dir,'idl','salome') @@ -157,6 +158,7 @@ def link_module(options): sharedoc_dir=os.path.join(home_dir,'share','doc','salome') sharedoc_gui_dir=os.path.join(home_dir,'share','doc','salome','gui') sharedoc_tui_dir=os.path.join(home_dir,'share','doc','salome','tui') + sharedoc_examples_dir=os.path.join(home_dir,'share','doc','salome','examples') if options.clear: rmtree(bin_dir) @@ -236,6 +238,7 @@ def link_module(options): for fn in os.listdir(module_sharedoc_dir): if fn == 'gui':continue if fn == 'tui':continue + if fn == 'examples':continue symlink(os.path.join(module_sharedoc_dir, fn), os.path.join(sharedoc_dir, fn)) pass pass @@ -255,6 +258,14 @@ def link_module(options): symlink(os.path.join(module_sharedoc_tui_dir, fn), os.path.join(sharedoc_tui_dir, fn)) pass pass + + #directory share/doc/salome/examples : create it and link content + if os.path.exists(module_sharedoc_examples): + mkdir(sharedoc_examples_dir) + for fn in os.listdir(module_sharedoc_examples): + symlink(os.path.join(module_sharedoc_examples, fn), os.path.join(sharedoc_examples_dir, fn)) + pass + pass #directory share/salome : create it and link content if os.path.exists(module_share_dir):