mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 10:22:15 -05:00
First implementation with Asynchronous gRPC server, a few services and some client python code.
15 lines
335 B
Python
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)
|
|
|