Files
ResInsight/Python/examples/SelectedCases.py
T
Gaute Lindkvist 922386c673 #4416 First implementation of gRPC-based Python interface
First implementation with Asynchronous gRPC server, a few services and some client python code.
2019-05-20 13:21:02 +02:00

15 lines
335 B
Python

import sys
import os
sys.path.insert(1, os.path.join(sys.path[0], '../api'))
import ResInsight
resInsight = ResInsight.Instance.find()
if resInsight is not None:
caseInfos = resInsight.projectInfo.selectedCases()
print ("Got " + str(len(caseInfos)) + " cases: ")
for caseInfo in caseInfos:
print(caseInfo.name)