fixed events plugin to create output folder if missing

proposta-home
putro 2019-05-01 12:51:00 +02:00
parent 6397007d04
commit aa0ebc7011
1 changed files with 5 additions and 2 deletions

View File

@ -126,6 +126,9 @@ def generate_ical_file(generator):
if not ics_fname:
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)
log.debug("Generating calendar at %s with %d events" % (ics_fname, len(events)))