mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-07-07 15:36:08 +12:00
40 lines
619 B
Python
40 lines
619 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 = data.Settings(path)
|
|
|
|
settings.load()
|
|
settings.save()
|
|
|
|
print(settings.properties)
|
|
|
|
plots = data.Plots(path)
|
|
|
|
plots.load()
|
|
plots.save()
|
|
|
|
revs = data.Revisions(path)
|
|
|
|
revs.load()
|
|
|
|
statusHost = data.StatusHost(path)
|
|
|
|
statusHost.load()
|
|
|
|
for status in statusHost:
|
|
print("--" + str(status))
|
|
|
|
statusHost.save()
|