Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Event before the loading of the plugins. #277

Merged
merged 3 commits into from Oct 23, 2017

Commits on Oct 14, 2017

  1. Adds Event EventGhost.Started

    Adds  EventGhost.Started event to take place before the running of the Autostart macro. This is done so that if the user needs to set into place any globals that a script may depend on it can be done before the possibility of a plugin starting and generating an event before the Main.OnInit gets triggered.
    
    There is a payload with this event that is an instance of a Time(datetime.datetime) object I subclassed the datetime.datetime class to override the __str__ and __repr__ methods so it would produce a nice date in the log. other then that it functions exactly the same as a datetime.datetime object
    kdschlosser committed Oct 14, 2017
    Configuration menu
    Copy the full SHA
    3251ab4 View commit details
    Browse the repository at this point in the history
  2. Fixes tracebacks

    Correction: event name is EventGhost.Startup
    Removed subclassing of the datetime.datetime object as this caused some issues. The object returned is a class that stores the datetime.datetime instance and will returns any attributes to has correctly other then __repr__ and __str__
    
    I also removed adding the execution of the event into the action thread. The Autostart.Execute() was already being run in the action thread. and this caused a hang because it would wait for the event to get run when the Execute was already being run.
    kdschlosser committed Oct 14, 2017
    Configuration menu
    Copy the full SHA
    e810fb9 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2017

  1. Fixes traceback

    kdschlosser committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    2d2b118 View commit details
    Browse the repository at this point in the history