Skip to content

Commit 4514816

Browse files
committed
Covers wand and -s cases
1 parent 8382323 commit 4514816

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Interface/Application/SCIRunMainWindow.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,6 +1061,7 @@ void SCIRunMainWindow::setupPythonConsole()
10611061
void SCIRunMainWindow::runPythonScript(const QString& scriptFileName)
10621062
{
10631063
#ifdef BUILD_WITH_PYTHON
1064+
NetworkEditor::InEditingContext iec(networkEditor_);
10641065
GuiLogger::Instance().logInfo("RUNNING PYTHON SCRIPT: " + scriptFileName);
10651066
PythonInterpreter::Instance().importSCIRunLibrary();
10661067
PythonInterpreter::Instance().run_file(scriptFileName.toStdString());

0 commit comments

Comments
 (0)