manuskript/bin/test_io.py
TheJackiMonster dfe6cdece2
Added new data models for plots with use of new file io
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2021-05-04 23:04:53 +02:00

24 lines
499 B
Python

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
realpath = os.path.realpath(__file__)
sys.path.insert(1, os.path.join(os.path.dirname(realpath), '..'))
import manuskript.io as io
import manuskript.data as data
path = os.path.join(sys.path[1], "sample-projects/book-of-acts/settings.txt")
settings = io.JsonFile(path)
result = settings.load()
print(result)
plots = data.Plots(os.path.join(sys.path[1], "sample-projects/book-of-acts/plots.xml"))
plots.load()
plots.save()