mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4866 Fix Python example script
This commit is contained in:
parent
d3140b6aac
commit
d21afc5a41
@ -120,8 +120,8 @@ void RicNewPythonScriptFeature::onActionTriggered( bool isChecked )
|
|||||||
{
|
{
|
||||||
QTextStream stream( &file );
|
QTextStream stream( &file );
|
||||||
stream << "# Load ResInsight Processing Server Client Library\nimport rips\n# Connect to ResInsight "
|
stream << "# Load ResInsight Processing Server Client Library\nimport rips\n# Connect to ResInsight "
|
||||||
"instance\nresInsight = rips.Instance.find()\n# Example code\nprint(\"ResInsight version: \" + "
|
"instance\nresinsight = rips.Instance.find()\n# Example code\nprint(\"ResInsight version: \" + "
|
||||||
"resInsight.app.versionString())\n";
|
"resinsight.version_string())\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
scriptColl->readContentFromDisc();
|
scriptColl->readContentFromDisc();
|
||||||
|
Loading…
Reference in New Issue
Block a user