def load_data_str(rel_path):
 full_path = ((path(__file__).abspath().dirname() / 'data') / rel_path)
 with open(full_path) as data_file:
  return data_file.read()

def load_data_str ( rel_path ) : full_path = ( ( path ( __file__ ) . abspath ( ) . dirname ( ) / 'data' ) / rel_path ) with open ( full_path ) as data_file : return data_file . read ( )
load a file from the "data" directory as a string .