blob: f6328235810724e9d1a97d2524b0f9500b2896f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/usr/bin/env python3
# You can generate python documentation with the following commands:
# g-ir-doc-tool --language Python -o ./html ../libxfce4util/Libxfce4util-1.0.gir
# yelp ./html/
import gi.repository
# Set the search path to use the newly generated introspection files
gi.require_version('GIRepository', '2.0')
from gi.repository import GIRepository
GIRepository.Repository.prepend_search_path('../libxfce4util/')
# Now import 4util
gi.require_version('Libxfce4util', '1.0')
from gi.repository import Libxfce4util
# print out some stuff to see if it works
print("homedir: ", Libxfce4util.get_homedir())
print("get_dir_localized: ", Libxfce4util.get_dir_localized(Libxfce4util.get_homedir()))
print("version: ", Libxfce4util.version_string())
|