ranaroussi / quantstats

Audit required: External control of file name or path PTC-W6004
Security
Minor
1 occurrence in this check
External variable 'template_path' used in file path
  83    win_year, win_half_year = _get_trading_periods(periods_per_year)
  84
  85    tpl = ""
  86    with open(template_path or __file__[:-4] + ".html") as f:  87        tpl = f.read()
  88        f.close()
  89