mediaserver/mediaserver/__init__.py
2021-04-26 15:07:02 +02:00

16 lines
354 B
Python
Executable File

# perform gstreamer imports (python3 style)
import gi
gi.require_version('Gst','1.0')
from gi.repository import GObject
from gi.repository import Gst
# now perform once-per-module initializations
GObject.threads_init()
Gst.init(None)
from . resources import Resources
# set Resources to use resources from this package
Resources.SetPackage(__name__)