Has anybody used libpeas in a Python application?
- From: Micah Carrick <micah quixotix com>
- To: python-hackers-list gnome org
- Subject: Has anybody used libpeas in a Python application?
- Date: Wed, 4 Jan 2012 07:55:54 -0800
Has anybody else tried implementing libpeas in a Python/GTK+ 3 application? I haven't quite fully wrapped my head around the whole libpeas library, but, I'm not having any success tinkering.
from gi.repository import Peas
engine = Peas.Engine.get_default()
engine.enable_loader("python")
engine.add_search_path("plugins", "plugins")
info = engine.get_plugin_info("minimal")
print info.get_name()
engine.set_loaded_plugins(["minimal"])
OUTPUT:
Plugin name: Minimal Plugin
Fatal Python error: PyEval_RestoreThread: NULL tstate
Aborted
I cannot figure out how to instantiate Peas.ExtensionSet
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]