mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 23:46:00 -06:00
#4471 Fill in "import rips" and other example code when creating a Python script from within ResInsight
This commit is contained in:
parent
357c722b4b
commit
1d04f1034f
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user