]> Creatis software - bbtk.git/blob - packages/std/bbs/boxes/bbPrependDataPath.bbs
9a4cdf2dad437e231c239ceda68e75f3df21234a
[bbtk.git] / packages / std / bbs / boxes / bbPrependDataPath.bbs
1 load std
2
3 # --- Box Description ---
4 define PrependDataPath std
5   author "jpr@creatis.insa-lyon.fr"
6   description "Prepends the input string file 'last name' with the default DataPath found in bbtk_config_xml"
7   category "misc"
8 # ---                ---
9
10   # For getting default Data Path
11   new Configuration c
12   
13   # For making a full path name, avoiding troubles with / or \
14   new MakeFileName mfn
15   
16   connect c.DataPath mfn.Directory
17   
18   # used in GUI mode (-g option)
19   input  In   mfn.File "Last Filename"
20   output Out mfn.Out   "Full path Filename"
21 endefine
22