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
  79    win_year, win_half_year = _get_trading_periods(periods_per_year)
  80
  81    tpl = ""
  82    with open(template_path or __file__[:-4] + ".html") as f:  83        tpl = f.read()
  84        f.close()
  85