fixed events plugin to create output folder if missing

This commit is contained in:
putro 2019-05-01 12:51:00 +02:00
parent 6397007d04
commit aa0ebc7011

View File

@ -126,6 +126,9 @@ def generate_ical_file(generator):
if not ics_fname: if not ics_fname:
return return
if not os.path.exists(generator.settings['OUTPUT_PATH']):
os.makedirs(generator.settings['OUTPUT_PATH'])
ics_fname = os.path.join(generator.settings['OUTPUT_PATH'], ics_fname) ics_fname = os.path.join(generator.settings['OUTPUT_PATH'], ics_fname)
log.debug("Generating calendar at %s with %d events" % (ics_fname, len(events))) log.debug("Generating calendar at %s with %d events" % (ics_fname, len(events)))