14 lines
491 B
Python
14 lines
491 B
Python
|
import tomllib
|
||
|
import otime
|
||
|
import cli
|
||
|
def main():
|
||
|
event = otime.Event.from_toml(open("/home/trygve/Prosjekter/otime-testing/sc3/sc3.toml", "rb"))
|
||
|
cli.print_o_classes(event.o_classes)
|
||
|
print(event.name)
|
||
|
|
||
|
event = otime.Event.from_xml_entries("/home/trygve/Prosjekter/otime-testing/sc3/entries.xml")
|
||
|
event.import_xml_courses('/home/trygve/Prosjekter/otime-testing/sc3/course.xml')
|
||
|
cli.print_o_classes(event.o_classes)
|
||
|
print(event.name)
|
||
|
event.create_toml('sc3/')
|