blob: 4dd71b43aae698ecbee44cf26d46f94488fc0ecf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
<?xml version="1.0"?>
<page id="GIRepository.Repository.get_typelib_path"
type="topic"
style="method"
xmlns="http://projectmallard.org/1.0/"
xmlns:api="http://projectmallard.org/experimental/api/"
xmlns:ui="http://projectmallard.org/experimental/ui/">
<info>
<link type="guide" xref="GIRepository.Repository" group="method"/>
<api:function>
<api:returns>
<api:type>utf8</api:type>
</api:returns>
<api:name>g_irepository_get_typelib_path</api:name>
<api:arg>
<api:type>GIRepository *</api:type>
<api:name>self</api:name>
</api:arg>
<api:arg>
<api:type>utf8</api:type>
<api:name>namespace_</api:name>
</api:arg>
</api:function>
</info>
<title>get_typelib_path</title>
<synopsis><code mime="text/x-python">
@accepts(utf8)
@returns(utf8)
def get_typelib_path(namespace_)
</code></synopsis>
<p>If namespace @namespace_ is loaded, return the full path to the
.typelib file it was loaded from. If the typelib for
namespace @namespace_ was included in a shared library, return
the special string "$lt;builtin$gt;".</p>
<table>
<tr>
<td><p>namespace_ :</p></td>
<td><p>GI namespace to use, e.g. "Gtk"</p></td>
</tr>
<tr>
<td><p>Returns :</p></td>
<td><p>Filesystem path (or $lt;builtin$gt;) if successful, None if namespace is not loaded</p></td>
</tr>
</table>
</page>
|