code: def dot_mavproxy(name=None):
      '''return a path to store mavproxy data'''
      if 'HOME' not in os.environ:
          dir = os.path.join(os.environ['LOCALAPPDATA'], '.mavproxy')
      else:
          dir = os.path.join(os.environ['HOME'], '.mavproxy')
      mkdir_p(dir)
      if name is None:
          return dir
      return os.path.join(dir, namef dot_mavproxy(name=None):
      '''return a path to store mavproxy data'''
      if 'HOME' not in os.environ:
          dir = os.path.join(os.environ['LOCALAPPDATA'], '.mavproxy')
      else:
          dir = os.path.join(os.environ['HOME'], '.mavproxy')
      mkdir_p(dir)
      if name is None:
          return dir
      return os.path.join(dir, name)
docs: return a path to store mavproxy data