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