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