mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 01:12:11 -05:00
#4471 Fill in "import rips" and other example code when creating a Python script from within ResInsight
This commit is contained in:
1 parent
357c722b4b
commit
1d04f1034f
1 file changed
+5
@@ -114,6 +114,11 @@ void RicNewPythonScriptFeature::onActionTriggered(bool isChecked)
|
||||
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
QTextStream stream(&file);
|
||||
stream << "# Load ResInsight Processing Server Client Library\nimport rips\n# Connect to ResInsight instance\nresInsight = rips.Instance.find()\n# Example code\nprint(\"ResInsight version:\" + resInsight.app.versionString())\n";
|
||||
}
|
||||
|
||||
RicRefreshScriptsFeature::refreshScriptFolders();
|
||||
|
||||
|
||||
Reference in new issue
Block a user