Diffusion Krita 18397e5086a5

Improve run action inside Scripter plugin

Authored by eliakinalmeida on May 28 2017, 7:06 AM.

Description

Improve run action inside Scripter plugin

  • Now we will execute files using importlib instead of exec.
  • Users can still executing scripts without save files (simple scripts).
  • Users have to define a "main" function to scripts that are modules.
  • Scripts are compiled to bytecode and then executed in an empty scope.

Details

Committed
eliakinalmeidaMay 28 2017, 7:06 AM
Parents
R37:bb4dd8275764: Implement All non-GUI tests to Python Scripting API
Branches
Unknown
Tags
Unknown