Skip to content

Commit

Permalink
Debug stage checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Dilshan-H committed Nov 15, 2023
1 parent fc6b9f6 commit 65e1450
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions converters/icalendar_to_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ def ics_to_csv(file_path):
with open(file_path, "r", encoding="utf-8") as file:
cal = Calendar.from_ical(file.read())

print(os.curdir)
print(os.pardir)
print(os.path.abspath(os.path.join(os.curdir, os.pardir)))

csv_dir = os.path.abspath(os.path.join(os.curdir, os.pardir, CSV_DIR_NAME))
os.makedirs(csv_dir, exist_ok=True)
print(f"Created directory: {csv_dir}")
Expand Down
2 changes: 1 addition & 1 deletion ics/2021.ics
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ STATUS:CONFIRMED
UID:sl_26
DTSTART;VALUE=DATE:20211230
DTEND;VALUE=DATE:20211231
SUMMARY:Temp Holiday v8
SUMMARY:Temp Holiday v9
DESCRIPTION:Public,Bank,Mercantile
END:VEVENT
END:VCALENDAR

0 comments on commit 65e1450

Please sign in to comment.