summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuergen Bocklage-Ryannel <juergen.bocklage-ryannel@pelagicore.com>2017-01-20 08:47:57 +0100
committerJuergen Bocklage-Ryannel <juergen.bocklage-ryannel@pelagicore.com>2017-01-20 08:47:57 +0100
commitaf81b318f31b8b4d53600f27385e2b41dd8cb738 (patch)
tree46416b48b01e612d3a5d274e0458d2d53f293d61
parent865578cfb8b0fcd21fb85d0d1f9c27ff8008b7ad (diff)
downloadqtivi-qface-af81b318f31b8b4d53600f27385e2b41dd8cb738.tar.gz
fixed docu
-rw-r--r--docs/domain.rst2
-rw-r--r--docs/usage.rst2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/domain.rst b/docs/domain.rst
index 7dd15d0..bf8f1c1 100644
--- a/docs/domain.rst
+++ b/docs/domain.rst
@@ -27,7 +27,7 @@ The domain model is the base for the code generation. You traverse the domain tr
from qface.generator import FileSystem
- system = FileSystem.parse_dir('interfaces')
+ system = FileSystem.parse('./interfaces')
for module in sytem.modules:
print(module.name)
diff --git a/docs/usage.rst b/docs/usage.rst
index 974ae7e..32411f1 100644
--- a/docs/usage.rst
+++ b/docs/usage.rst
@@ -77,7 +77,7 @@ The code generation is driven by a small script which iterates over the domain m
from qface.generator import FileSystem, Generator
def generate(input, output):
- system = FileSystem.parse_dir(input)
+ system = FileSystem.parse(input)
generator = Generator(searchpath='templates')
ctx = {'output': output, 'system': system}
generator.write('{{output}}/modules.csv', 'modules.csv', ctx)