gstreamer-python 1.27.90__cp39-cp39-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. gstreamer_python/Lib/girepository-1.0/GdkPixbuf-2.0.typelib +0 -0
  2. gstreamer_python/Lib/girepository-1.0/HarfBuzz-0.0.typelib +0 -0
  3. gstreamer_python/Lib/girepository-1.0/Json-1.0.typelib +0 -0
  4. gstreamer_python/Lib/girepository-1.0/Pango-1.0.typelib +0 -0
  5. gstreamer_python/Lib/girepository-1.0/PangoCairo-1.0.typelib +0 -0
  6. gstreamer_python/Lib/girepository-1.0/Soup-3.0.typelib +0 -0
  7. gstreamer_python/Lib/gstreamer-1.0/gstpython.dll +0 -0
  8. gstreamer_python/Lib/site-packages/PyGObject-3.50.2.dist-info/METADATA +21 -0
  9. gstreamer_python/Lib/site-packages/cairo/__init__.py +25 -0
  10. gstreamer_python/Lib/site-packages/cairo/__init__.pyi +5889 -0
  11. gstreamer_python/Lib/site-packages/cairo/_cairo.cp39-win_amd64.pyd +0 -0
  12. gstreamer_python/Lib/site-packages/cairo/include/py3cairo.h +266 -0
  13. gstreamer_python/Lib/site-packages/cairo/py.typed +0 -0
  14. gstreamer_python/Lib/site-packages/gi/__init__.py +197 -0
  15. gstreamer_python/Lib/site-packages/gi/_constants.py +47 -0
  16. gstreamer_python/Lib/site-packages/gi/_error.py +55 -0
  17. gstreamer_python/Lib/site-packages/gi/_gi.cp39-win_amd64.pyd +0 -0
  18. gstreamer_python/Lib/site-packages/gi/_gi_cairo.cp39-win_amd64.pyd +0 -0
  19. gstreamer_python/Lib/site-packages/gi/_gtktemplate.py +307 -0
  20. gstreamer_python/Lib/site-packages/gi/_option.py +379 -0
  21. gstreamer_python/Lib/site-packages/gi/_ossighelper.py +275 -0
  22. gstreamer_python/Lib/site-packages/gi/_propertyhelper.py +402 -0
  23. gstreamer_python/Lib/site-packages/gi/_signalhelper.py +249 -0
  24. gstreamer_python/Lib/site-packages/gi/docstring.py +205 -0
  25. gstreamer_python/Lib/site-packages/gi/events.py +674 -0
  26. gstreamer_python/Lib/site-packages/gi/importer.py +153 -0
  27. gstreamer_python/Lib/site-packages/gi/module.py +269 -0
  28. gstreamer_python/Lib/site-packages/gi/overrides/GES.py +94 -0
  29. gstreamer_python/Lib/site-packages/gi/overrides/GIMarshallingTests.py +72 -0
  30. gstreamer_python/Lib/site-packages/gi/overrides/GLib.py +882 -0
  31. gstreamer_python/Lib/site-packages/gi/overrides/GObject.py +692 -0
  32. gstreamer_python/Lib/site-packages/gi/overrides/Gdk.py +444 -0
  33. gstreamer_python/Lib/site-packages/gi/overrides/GdkPixbuf.py +53 -0
  34. gstreamer_python/Lib/site-packages/gi/overrides/Gio.py +655 -0
  35. gstreamer_python/Lib/site-packages/gi/overrides/Gst.py +1273 -0
  36. gstreamer_python/Lib/site-packages/gi/overrides/GstAnalytics.py +106 -0
  37. gstreamer_python/Lib/site-packages/gi/overrides/GstApp.py +50 -0
  38. gstreamer_python/Lib/site-packages/gi/overrides/GstAudio.py +18 -0
  39. gstreamer_python/Lib/site-packages/gi/overrides/GstPbutils.py +99 -0
  40. gstreamer_python/Lib/site-packages/gi/overrides/GstVideo.py +17 -0
  41. gstreamer_python/Lib/site-packages/gi/overrides/Gtk.py +1707 -0
  42. gstreamer_python/Lib/site-packages/gi/overrides/Pango.py +58 -0
  43. gstreamer_python/Lib/site-packages/gi/overrides/__init__.py +357 -0
  44. gstreamer_python/Lib/site-packages/gi/overrides/_gi_gst.cp39-win_amd64.pyd +0 -0
  45. gstreamer_python/Lib/site-packages/gi/overrides/_gi_gst_analytics.cp39-win_amd64.pyd +0 -0
  46. gstreamer_python/Lib/site-packages/gi/overrides/keysyms.py +53 -0
  47. gstreamer_python/Lib/site-packages/gi/pygtkcompat.py +26 -0
  48. gstreamer_python/Lib/site-packages/gi/repository/__init__.py +28 -0
  49. gstreamer_python/Lib/site-packages/gi/types.py +350 -0
  50. gstreamer_python/Lib/site-packages/pycairo-1.27.0.dist-info/METADATA +9 -0
  51. gstreamer_python/__init__.py +32 -0
  52. gstreamer_python-1.27.90.dist-info/METADATA +26 -0
  53. gstreamer_python-1.27.90.dist-info/RECORD +55 -0
  54. gstreamer_python-1.27.90.dist-info/WHEEL +5 -0
  55. gstreamer_python-1.27.90.dist-info/top_level.txt +1 -0
@@ -0,0 +1,58 @@
1
+ # -*- Mode: Python; py-indent-offset: 4 -*-
2
+ # vim: tabstop=4 shiftwidth=4 expandtab
3
+ #
4
+ # Copyright (C) 2010 Paolo Borelli <pborelli@gnome.org>
5
+ #
6
+ # This library is free software; you can redistribute it and/or
7
+ # modify it under the terms of the GNU Lesser General Public
8
+ # License as published by the Free Software Foundation; either
9
+ # version 2.1 of the License, or (at your option) any later version.
10
+ #
11
+ # This library is distributed in the hope that it will be useful,
12
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ # Lesser General Public License for more details.
15
+ #
16
+ # You should have received a copy of the GNU Lesser General Public
17
+ # License along with this library; if not, write to the Free Software
18
+ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
19
+ # USA
20
+
21
+ from ..overrides import override
22
+ from ..module import get_introspection_module
23
+
24
+ Pango = get_introspection_module('Pango')
25
+
26
+ __all__ = []
27
+
28
+
29
+ class FontDescription(Pango.FontDescription):
30
+
31
+ def __new__(cls, string=None):
32
+ if string is not None:
33
+ return Pango.font_description_from_string(string)
34
+ else:
35
+ return Pango.FontDescription.__new__(cls)
36
+
37
+ def __init__(self, *args, **kwargs):
38
+ return super(FontDescription, self).__init__()
39
+
40
+
41
+ FontDescription = override(FontDescription)
42
+ __all__.append('FontDescription')
43
+
44
+
45
+ class Layout(Pango.Layout):
46
+
47
+ def __new__(cls, context):
48
+ return Pango.Layout.new(context)
49
+
50
+ def set_markup(self, text, length=-1):
51
+ super(Layout, self).set_markup(text, length)
52
+
53
+ def set_text(self, text, length=-1):
54
+ super(Layout, self).set_text(text, length)
55
+
56
+
57
+ Layout = override(Layout)
58
+ __all__.append('Layout')
@@ -0,0 +1,357 @@
1
+ import functools
2
+ import types
3
+ import warnings
4
+ import importlib
5
+ import sys
6
+
7
+ from gi import PyGIDeprecationWarning
8
+ from gi._gi import CallableInfo, pygobject_new_full
9
+ from gi._constants import \
10
+ TYPE_NONE, \
11
+ TYPE_INVALID
12
+
13
+ # support overrides in different directories than our gi module
14
+ from pkgutil import extend_path
15
+ __path__ = extend_path(__path__, __name__)
16
+
17
+
18
+ # namespace -> (attr, replacement)
19
+ _deprecated_attrs = {}
20
+
21
+
22
+ class OverridesProxyModule(types.ModuleType):
23
+ """Wraps a introspection module and contains all overrides"""
24
+
25
+ def __init__(self, introspection_module):
26
+ super(OverridesProxyModule, self).__init__(
27
+ introspection_module.__name__)
28
+ self._introspection_module = introspection_module
29
+
30
+ def __getattr__(self, name):
31
+ return getattr(self._introspection_module, name)
32
+
33
+ def __dir__(self):
34
+ result = set(dir(self.__class__))
35
+ result.update(self.__dict__.keys())
36
+ result.update(dir(self._introspection_module))
37
+ return sorted(result)
38
+
39
+ def __repr__(self):
40
+ return "<%s %r>" % (type(self).__name__, self._introspection_module)
41
+
42
+
43
+ class _DeprecatedAttribute(object):
44
+ """A deprecation descriptor for OverridesProxyModule subclasses.
45
+
46
+ Emits a PyGIDeprecationWarning on every access and tries to act as a
47
+ normal instance attribute (can be replaced and deleted).
48
+ """
49
+
50
+ def __init__(self, namespace, attr, value, replacement):
51
+ self._attr = attr
52
+ self._value = value
53
+ self._warning = PyGIDeprecationWarning(
54
+ '%s.%s is deprecated; use %s instead' % (
55
+ namespace, attr, replacement))
56
+
57
+ def __get__(self, instance, owner):
58
+ if instance is None:
59
+ raise AttributeError(self._attr)
60
+ warnings.warn(self._warning, stacklevel=2)
61
+ return self._value
62
+
63
+ def __set__(self, instance, value):
64
+ attr = self._attr
65
+ # delete the descriptor, then set the instance value
66
+ delattr(type(instance), attr)
67
+ setattr(instance, attr, value)
68
+
69
+ def __delete__(self, instance):
70
+ # delete the descriptor
71
+ delattr(type(instance), self._attr)
72
+
73
+
74
+ def load_overrides(introspection_module):
75
+ """Loads overrides for an introspection module.
76
+
77
+ Either returns the same module again in case there are no overrides or a
78
+ proxy module including overrides. Doesn't cache the result.
79
+ """
80
+
81
+ namespace = introspection_module.__name__.rsplit(".", 1)[-1]
82
+ module_key = 'gi.repository.' + namespace
83
+
84
+ # We use sys.modules so overrides can import from gi.repository
85
+ # but restore everything at the end so this doesn't have any side effects
86
+ has_old = module_key in sys.modules
87
+ old_module = sys.modules.get(module_key)
88
+
89
+ # Create a new sub type, so we can separate descriptors like
90
+ # _DeprecatedAttribute for each namespace.
91
+ proxy_type = type(namespace + "ProxyModule", (OverridesProxyModule, ), {})
92
+
93
+ proxy = proxy_type(introspection_module)
94
+ sys.modules[module_key] = proxy
95
+
96
+ # backwards compat:
97
+ # gedit uses gi.importer.modules['Gedit']._introspection_module
98
+ from ..importer import modules
99
+ assert hasattr(proxy, "_introspection_module")
100
+ modules[namespace] = proxy
101
+
102
+ try:
103
+ override_package_name = 'gi.overrides.' + namespace
104
+ spec = importlib.util.find_spec(override_package_name)
105
+ override_loader = spec.loader if spec is not None else None
106
+
107
+ # Avoid checking for an ImportError, an override might
108
+ # depend on a missing module thus causing an ImportError
109
+ if override_loader is None:
110
+ return introspection_module
111
+
112
+ override_mod = importlib.import_module(override_package_name)
113
+
114
+ finally:
115
+ del modules[namespace]
116
+ del sys.modules[module_key]
117
+ if has_old:
118
+ sys.modules[module_key] = old_module
119
+
120
+ # backwards compat: for gst-python/gstmodule.c,
121
+ # which tries to access Gst.Fraction through
122
+ # Gst._overrides_module.Fraction. We assign the proxy instead as that
123
+ # contains all overridden classes like Fraction during import anyway and
124
+ # there is no need to keep the real override module alive.
125
+ proxy._overrides_module = proxy
126
+
127
+ override_all = []
128
+ if hasattr(override_mod, "__all__"):
129
+ override_all = override_mod.__all__
130
+
131
+ for var in override_all:
132
+ try:
133
+ item = getattr(override_mod, var)
134
+ except (AttributeError, TypeError):
135
+ # Gedit puts a non-string in __all__, so catch TypeError here
136
+ continue
137
+ setattr(proxy, var, item)
138
+
139
+ # Replace deprecated module level attributes with a descriptor
140
+ # which emits a warning when accessed.
141
+ for attr, replacement in _deprecated_attrs.pop(namespace, []):
142
+ try:
143
+ value = getattr(proxy, attr)
144
+ except AttributeError:
145
+ raise AssertionError(
146
+ "%s was set deprecated but wasn't added to __all__" % attr)
147
+ delattr(proxy, attr)
148
+ deprecated_attr = _DeprecatedAttribute(
149
+ namespace, attr, value, replacement)
150
+ setattr(proxy_type, attr, deprecated_attr)
151
+
152
+ return proxy
153
+
154
+
155
+ def override(type_):
156
+ """Decorator for registering an override.
157
+
158
+ Other than objects added to __all__, these can get referenced in the same
159
+ override module via the gi.repository module (get_parent_for_object() does
160
+ for example), so they have to be added to the module immediately.
161
+ """
162
+
163
+ if isinstance(type_, CallableInfo):
164
+ func = type_
165
+ namespace = func.__module__.rsplit('.', 1)[-1]
166
+ module = sys.modules["gi.repository." + namespace]
167
+
168
+ def wrapper(func):
169
+ setattr(module, func.__name__, func)
170
+ return func
171
+
172
+ return wrapper
173
+ elif isinstance(type_, types.FunctionType):
174
+ raise TypeError("func must be a gi function, got %s" % type_)
175
+ else:
176
+ try:
177
+ info = getattr(type_, '__info__')
178
+ except AttributeError:
179
+ raise TypeError(
180
+ 'Can not override a type %s, which is not in a gobject '
181
+ 'introspection typelib' % type_.__name__)
182
+
183
+ if not type_.__module__.startswith('gi.overrides'):
184
+ raise KeyError(
185
+ 'You have tried override outside of the overrides module. '
186
+ 'This is not allowed (%s, %s)' % (type_, type_.__module__))
187
+
188
+ g_type = info.get_g_type()
189
+ assert g_type != TYPE_NONE
190
+ if g_type != TYPE_INVALID:
191
+ g_type.pytype = type_
192
+
193
+ namespace = type_.__module__.rsplit(".", 1)[-1]
194
+ module = sys.modules["gi.repository." + namespace]
195
+ setattr(module, type_.__name__, type_)
196
+
197
+ return type_
198
+
199
+
200
+ overridefunc = override
201
+ """Deprecated"""
202
+
203
+
204
+ def deprecated(fn, replacement):
205
+ """Decorator for marking methods and classes as deprecated"""
206
+ @functools.wraps(fn)
207
+ def wrapped(*args, **kwargs):
208
+ warnings.warn('%s is deprecated; use %s instead' % (fn.__name__, replacement),
209
+ PyGIDeprecationWarning, stacklevel=2)
210
+ return fn(*args, **kwargs)
211
+ return wrapped
212
+
213
+
214
+ def deprecated_attr(namespace, attr, replacement):
215
+ """Marks a module level attribute as deprecated. Accessing it will emit
216
+ a PyGIDeprecationWarning warning.
217
+
218
+ e.g. for ``deprecated_attr("GObject", "STATUS_FOO", "GLib.Status.FOO")``
219
+ accessing GObject.STATUS_FOO will emit:
220
+
221
+ "GObject.STATUS_FOO is deprecated; use GLib.Status.FOO instead"
222
+
223
+ :param str namespace:
224
+ The namespace of the override this is called in.
225
+ :param str namespace:
226
+ The attribute name (which gets added to __all__).
227
+ :param str replacement:
228
+ The replacement text which will be included in the warning.
229
+ """
230
+
231
+ _deprecated_attrs.setdefault(namespace, []).append((attr, replacement))
232
+
233
+
234
+ def deprecated_init(super_init_func, arg_names, ignore=tuple(),
235
+ deprecated_aliases={}, deprecated_defaults={},
236
+ category=PyGIDeprecationWarning,
237
+ stacklevel=2):
238
+ """Wrapper for deprecating GObject based __init__ methods which specify
239
+ defaults already available or non-standard defaults.
240
+
241
+ :param callable super_init_func:
242
+ Initializer to wrap.
243
+ :param list arg_names:
244
+ Ordered argument name list.
245
+ :param list ignore:
246
+ List of argument names to ignore when calling the wrapped function.
247
+ This is useful for function which take a non-standard keyword that is munged elsewhere.
248
+ :param dict deprecated_aliases:
249
+ Dictionary mapping a keyword alias to the actual g_object_newv keyword.
250
+ :param dict deprecated_defaults:
251
+ Dictionary of non-standard defaults that will be used when the
252
+ keyword is not explicitly passed.
253
+ :param Exception category:
254
+ Exception category of the error.
255
+ :param int stacklevel:
256
+ Stack level for the deprecation passed on to warnings.warn
257
+ :returns: Wrapped version of ``super_init_func`` which gives a deprecation
258
+ warning when non-keyword args or aliases are used.
259
+ :rtype: callable
260
+ """
261
+ # We use a list of argument names to maintain order of the arguments
262
+ # being deprecated. This allows calls with positional arguments to
263
+ # continue working but with a deprecation message.
264
+ def new_init(self, *args, **kwargs):
265
+ """Initializer for a GObject based classes with support for property
266
+ sets through the use of explicit keyword arguments.
267
+ """
268
+ # Print warnings for calls with positional arguments.
269
+ if args:
270
+ warnings.warn('Using positional arguments with the GObject constructor has been deprecated. '
271
+ 'Please specify keyword(s) for "%s" or use a class specific constructor. '
272
+ 'See: https://wiki.gnome.org/PyGObject/InitializerDeprecations' %
273
+ ', '.join(arg_names[:len(args)]),
274
+ category, stacklevel=stacklevel)
275
+ new_kwargs = dict(zip(arg_names, args))
276
+ else:
277
+ new_kwargs = {}
278
+ new_kwargs.update(kwargs)
279
+
280
+ # Print warnings for alias usage and transfer them into the new key.
281
+ aliases_used = []
282
+ for key, alias in deprecated_aliases.items():
283
+ if alias in new_kwargs:
284
+ new_kwargs[key] = new_kwargs.pop(alias)
285
+ aliases_used.append(key)
286
+
287
+ if aliases_used:
288
+ warnings.warn('The keyword(s) "%s" have been deprecated in favor of "%s" respectively. '
289
+ 'See: https://wiki.gnome.org/PyGObject/InitializerDeprecations' %
290
+ (', '.join(deprecated_aliases[k] for k in sorted(aliases_used)),
291
+ ', '.join(sorted(aliases_used))),
292
+ category, stacklevel=stacklevel)
293
+
294
+ # Print warnings for defaults different than what is already provided by the property
295
+ defaults_used = []
296
+ for key, value in deprecated_defaults.items():
297
+ if key not in new_kwargs:
298
+ new_kwargs[key] = deprecated_defaults[key]
299
+ defaults_used.append(key)
300
+
301
+ if defaults_used:
302
+ warnings.warn('Initializer is relying on deprecated non-standard '
303
+ 'defaults. Please update to explicitly use: %s '
304
+ 'See: https://wiki.gnome.org/PyGObject/InitializerDeprecations' %
305
+ ', '.join('%s=%s' % (k, deprecated_defaults[k]) for k in sorted(defaults_used)),
306
+ category, stacklevel=stacklevel)
307
+
308
+ # Remove keywords that should be ignored.
309
+ for key in ignore:
310
+ if key in new_kwargs:
311
+ new_kwargs.pop(key)
312
+
313
+ return super_init_func(self, **new_kwargs)
314
+
315
+ return new_init
316
+
317
+
318
+ def strip_boolean_result(method, exc_type=None, exc_str=None, fail_ret=None):
319
+ """Translate method's return value for stripping off success flag.
320
+
321
+ There are a lot of methods which return a "success" boolean and have
322
+ several out arguments. Translate such a method to return the out arguments
323
+ on success and None on failure.
324
+ """
325
+ @functools.wraps(method)
326
+ def wrapped(*args, **kwargs):
327
+ ret = method(*args, **kwargs)
328
+ if ret[0]:
329
+ if len(ret) == 2:
330
+ return ret[1]
331
+ else:
332
+ return ret[1:]
333
+ else:
334
+ if exc_type:
335
+ raise exc_type(exc_str or 'call failed')
336
+ return fail_ret
337
+ return wrapped
338
+
339
+
340
+ def wrap_list_store_sort_func(func):
341
+
342
+ def wrap(a, b, *user_data):
343
+ a = pygobject_new_full(a, False)
344
+ b = pygobject_new_full(b, False)
345
+ return func(a, b, *user_data)
346
+
347
+ return wrap
348
+
349
+
350
+ def wrap_list_store_equal_func(func):
351
+
352
+ def wrap(a, b, *user_data):
353
+ a = pygobject_new_full(a, False)
354
+ b = pygobject_new_full(b, False)
355
+ return func(a, b, *user_data)
356
+
357
+ return wrap
@@ -0,0 +1,53 @@
1
+ # -*- Mode: Python; py-indent-offset: 4 -*-
2
+ # pygtk - Python bindings for the GTK toolkit.
3
+ # Copyright (C) 1998-2003 James Henstridge
4
+ #
5
+ # gtk/keysyms.py: list of keysyms.
6
+ #
7
+ # This library is free software; you can redistribute it and/or
8
+ # modify it under the terms of the GNU Lesser General Public
9
+ # License as published by the Free Software Foundation; either
10
+ # version 2.1 of the License, or (at your option) any later version.
11
+ #
12
+ # This library is distributed in the hope that it will be useful,
13
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
+ # Lesser General Public License for more details.
16
+ #
17
+ # You should have received a copy of the GNU Lesser General Public
18
+ # License along with this library; if not, see <http://www.gnu.org/licenses/>.
19
+
20
+ import sys
21
+ import warnings
22
+
23
+ from ..module import get_introspection_module
24
+
25
+ Gdk = get_introspection_module('Gdk')
26
+
27
+ warnings.warn('keysyms has been deprecated. Please use Gdk.KEY_<name> instead.',
28
+ RuntimeWarning)
29
+
30
+ _modname = globals()['__name__']
31
+ _keysyms = sys.modules[_modname]
32
+
33
+ for name in dir(Gdk):
34
+ if name.startswith('KEY_'):
35
+ target = name[4:]
36
+ if target[0] in '0123456789':
37
+ target = '_' + target
38
+ value = getattr(Gdk, name)
39
+ setattr(_keysyms, target, value)
40
+
41
+
42
+ # Not found in Gdk but left for compatibility.
43
+ Armenian_eternity = 0x14a1
44
+ Armenian_section_sign = 0x14a2
45
+ Armenian_parenleft = 0x14a5
46
+ Armenian_guillemotright = 0x14a6
47
+ Armenian_guillemotleft = 0x14a7
48
+ Armenian_em_dash = 0x14a8
49
+ Armenian_dot = 0x14a9
50
+ Armenian_mijaket = 0x14a9
51
+ Armenian_comma = 0x14ab
52
+ Armenian_en_dash = 0x14ac
53
+ Armenian_ellipsis = 0x14ae
@@ -0,0 +1,26 @@
1
+ import warnings
2
+
3
+ from gi import PyGIDeprecationWarning
4
+
5
+ warnings.warn('gi.pygtkcompat is being deprecated in favor of using "pygtkcompat" directly.',
6
+ PyGIDeprecationWarning)
7
+
8
+ # pyflakes.ignore
9
+ from pygtkcompat import (enable,
10
+ enable_gtk,
11
+ enable_vte,
12
+ enable_poppler,
13
+ enable_webkit,
14
+ enable_gudev,
15
+ enable_gst,
16
+ enable_goocanvas)
17
+
18
+
19
+ __all__ = ['enable',
20
+ 'enable_gtk',
21
+ 'enable_vte',
22
+ 'enable_poppler',
23
+ 'enable_webkit',
24
+ 'enable_gudev',
25
+ 'enable_gst',
26
+ 'enable_goocanvas']
@@ -0,0 +1,28 @@
1
+ # -*- Mode: Python; py-indent-offset: 4 -*-
2
+ # vim: tabstop=4 shiftwidth=4 expandtab
3
+ #
4
+ # Copyright (C) 2009 Johan Dahlin <johan@gnome.org>
5
+ #
6
+ # This library is free software; you can redistribute it and/or
7
+ # modify it under the terms of the GNU Lesser General Public
8
+ # License as published by the Free Software Foundation; either
9
+ # version 2.1 of the License, or (at your option) any later version.
10
+ #
11
+ # This library is distributed in the hope that it will be useful,
12
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ # Lesser General Public License for more details.
15
+ #
16
+ # You should have received a copy of the GNU Lesser General Public
17
+ # License along with this library; if not, write to the Free Software
18
+ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
19
+ # USA
20
+
21
+ import sys
22
+
23
+ from ..importer import DynamicImporter
24
+
25
+ sys.meta_path.append(DynamicImporter('gi.repository'))
26
+
27
+ del DynamicImporter
28
+ del sys