docs: def file2abspath(filename, this_file=__file__):
      """
          generate absolute path for the given file and base dir
      """
      return os.path.abspath(
          os.path.join(os.path.dirname(os.path.abspath(this_file)), filename))