mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
14 lines
329 B
Python
14 lines
329 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.allCases()
|
|
|
|
print ("Got " + str(len(caseInfos)) + " cases: ")
|
|
for caseInfo in caseInfos:
|
|
print(caseInfo.name)
|