#NEWLINE# def write_qi_path_conf( sdk_directory , sdk_dirs ) : #NEWLINE# #INDENT# " Write the <build>/sdk/share/qi/path.conf file. This file\n    can be used for instance by qi::path::find() functions, to\n    find files from the dependencies' build directory\n\n    " #NEWLINE# to_write = '' #NEWLINE# for sdk_dir in sdk_dirs : #NEWLINE# #INDENT# to_write += ( qisys . sh . to_posix_path ( sdk_dir ) + '\n' ) #NEWLINE# #UNINDENT# path_dconf = os . path . join ( sdk_directory , 'share' , 'qi' ) #NEWLINE# qisys . sh . mkdir ( path_dconf , recursive = True ) #NEWLINE# path_conf = os . path . join ( path_dconf , 'path.conf' ) #NEWLINE# with open ( path_conf , 'w' ) as fp : #NEWLINE# #INDENT# fp . write ( to_write )