code: def get_data_dir():
      
      data_dir_paths = [
          os.path.join(os.path.dirname(ansiblecmdb.__file__), 'data'),
          os.path.join(os.path.dirname(sys.argv[0]), '..', 'lib', 'ansiblecmdb', 'data'),
          '/usr/local/lib/ansiblecmdb/data',
          '/usr/lib/ansiblecmdb/data',
      ]
  
      data_dir = util.find_path(data_dir_paths, 'tpl/html_fancy.tpl')
      if not data_dir:
          sys.stdout.write("Couldn't find the data dir for the templates. I tried: {0}\n".format(", ".join(data_dir_paths)))
          sys.exit(1)
  
      return data_dir
docs: Find out our installation prefix and data directory. These can be in
      different places depending on how ansible-cmdb was installed.