Skip to content

Conversation

@digisteph
Copy link

Hello,
I modified the code to be able to control plugins from a Shotgun entity. This is done through a plugin added in the plugins folder, as I didn't want to change things a lot in the main shotgunEventDaemon.py code. It should still work as before, actually the pluginManager plugin is loaded with the 'standard' mechanism.

The main changes are

  • Allow to run without a smtp server, which is handy when doing tests.
  • Allow plugins to read settings from the main configuration file.
  • Exposed some of the Engine functionalities to plugins and callbacks through Engine methods.
  • Tried to made sure iterating over plugins is safe, even if the list is changed.
  • Added a 'autoDiscover' setting to PluginCollection to disable automatic loading of new scripts.
  • Added some debug print to understand why some events are ignored.

Happy to contribute and hope my changes are useful !

Stéphane Deverly and others added 30 commits November 30, 2012 14:14
added ability for plugins to access config file with their name
revival / retirement seems to work
still need to check script_path change CB
able to handle script path changes
added script check in init
added ignore_projects field to plugins
fixed bug when script path is empty
added a README to explain what the extra stuff is about
added ablitiy to run shotgunEventDaemon.py on a single event
added small utils to dump out the id file contents
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant