Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions FoxDot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

from __future__ import absolute_import, division, print_function

import importlib.metadata

def boot_supercollider():
""" Uses subprocesses to boot supercollider from the cli """

Expand Down Expand Up @@ -110,6 +112,15 @@ def main():
from .lib.Workspace.Editor import workspace
FoxDot = workspace(FoxDotCode).run()


# load plugins
for _ep in importlib.metadata.entry_points(group="FoxDot.namespace_hooks"):
try:
_ep.load()(FoxDotCode.namespace)
except:
pass


def Go():
""" Function to be called at the end of Python files with FoxDot code in to keep
the TempoClock thread alive. """
Expand Down