How can I keep resetting the script environment every time I restart the script without dynamically creating it? The global variables of historical scripts will be contaminated.
4302473 opened this issue · 1 comments
4302473 commented
-
How to use buttons to stop scripts in Delphi, such as when the script is in a loop.
-
How can I keep resetting the script environment every time I restart the script without dynamically creating it? The global variables of historical scripts will be contaminated.
pyscripter commented
- Press the Abort button. If this does not work, then try Run, Python Engine, ReInitialize
- By default each time you run a script it runs in a new interpreter. You can control this using Tools, Options, IDE Options, Python Interpreter, "Reinitialize before run"