Mercurial > hg > orthanc-stone
view Applications/Samples/StoneSampleCommands_generate.py @ 850:df0c73ee7afa
Prevent creation of multiple GuiAdapter instances
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 17 Jun 2019 16:12:52 +0200 |
parents | b1377625e4ba |
children |
line wrap: on
line source
import sys import os # add the generation script location to the search paths sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'Resources', 'CodeGeneration')) # import the code generation tooling script import stonegentool schemaFile = os.path.join(os.path.dirname(__file__), 'StoneSampleCommands.yml') outDir = os.path.dirname(__file__) # ignition! stonegentool.Process(schemaFile, outDir)