Add Script Starter script
ClosedPublic

Authored by brendanbd on Mar 13 2018, 2:25 AM.

Details

Reviewers
rempt
Group Reviewers
Krita
Commits
R37:67b45f0c9ade: Add script starter script
Summary

This diff contains the files for a new script, Krita Script Starter. The script, when run, will prompt the user for meta data related to the script, then create the file structure to get started on a the script, primarily based on the name given to the script. This makes it easy to create new scripts - eg for new users, or for creating scripts for testing purposes.

Test Plan

Run script
Enter data
Click create
Check that:

  • a package directory is created based on the name of the script given
  • in the directory are the files: __init__.py <name_of_script>.py and Manual.py
  • check __init__.py imports from the correct script name
  • check <name of script>.py has skeleton code that will create the correct type of script (ie docker v extension)
  • check Manual.py has skeleton html for the
  • a desktop metadata file is created that correctly references the script files
  • files are in the correct directory

Diff Detail

Repository
R37 Krita
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
brendanbd created this revision.Mar 13 2018, 2:25 AM
Restricted Application added a subscriber: woltherav. · View Herald TranscriptMar 13 2018, 2:25 AM
brendanbd requested review of this revision.Mar 13 2018, 2:25 AM
rempt added a subscriber: rempt.Mar 13 2018, 8:14 AM

Oh nice! You'll need to add it to the krita/plugins/python/CMakeLists.txt file, too, though!

BTW If the ui file is in the same directory as the script it will run from the command line. So you can run it stand alone to test.

brendanbd updated this revision to Diff 30881.Mar 29 2018, 8:47 PM

Update to diff - add some documentation, update cmakelists.txt

rempt accepted this revision.Apr 3 2018, 6:08 AM

Please push :-)

This revision is now accepted and ready to land.Apr 3 2018, 6:08 AM
Closed by commit R37:67b45f0c9ade: Add script starter script (authored by Brendan Bd <bunf2014@apps.opensourcelaw.biz>). · Explain WhyApr 4 2018, 9:03 AM
This revision was automatically updated to reflect the committed changes.