2

I am new to Python scripting and I am currently trying to get acquainted with python scripting and DigSILENT Powerfactory.

I have managed thus far to execute powerfactory, activate projects and execute a load flow but after my code ends, when I try to rerun it, it wont run. In order for it to run I need to close Spyder and reopen it. I believe this is related to the fact that powerfactory is still running in the background so I was wondering if there is any command that "forces" powerfactory to shut down after the code execution.

Any tip would be greatly appreciated :)

Nisfa
  • 359
  • 1
  • 4
  • 16

2 Answers2

0

I had the same problem. But faster than shutdown/reopen spyder is to restart the kernel with ctrl + .

Draken
  • 3,134
  • 13
  • 34
  • 54
0

you could try this:

app.PostCommand("exit")

  • 1
    There is somehow the problem that the program is not completely closed and can't be reopened until kernel or spyder is restarted – ironzionlion Aug 26 '20 at 08:57