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