now also finds example.json if called from another location

This commit is contained in:
David Kilias 2020-03-16 10:50:47 +01:00
parent a46384aa25
commit d3cabbf573

View file

@ -54,7 +54,7 @@ def main(*_args):
if len(argv) > 1:
filename = argv[1]
else:
filename = 'example.json'
filename = Path(Path(__file__).absolute().parent, 'example.json')
app = FormApp(filename)