https://bugs.kde.org/show_bug.cgi?id=387702

            Bug ID: 387702
           Summary: Permit Scripter to load scripts which don't have a
                    main()
           Product: krita
           Version: 4.0 pre-alpha
          Platform: Compiled Sources
                OS: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: Scripting
          Assignee: krita-bugs-n...@kde.org
          Reporter: bunf2...@apps.opensourcelaw.biz
  Target Milestone: ---

Created attachment 109254
  --> https://bugs.kde.org/attachment.cgi?id=109254&action=edit
Allow scripter to play main()-less scripts without complaining

If a script is typed into the scripter window interactively and saved, scripter
keeps a record of the file and automatically loads the script on the next run.
When you press play on this auto-loaded script the runner module tries to load
the module, then run it's main() method. However, an interactive script may not
have a main method.  Scripter should run main() if it's present, but fail
silently if it is not present. 

Patch attached.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to