fixed events plugin to create output folder if missing
This commit is contained in:
parent
6397007d04
commit
aa0ebc7011
|
@ -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)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user