blob: ee09ccfc89e0a7568f474dfd0748f59fcb5cc9ee [file] [log] [blame]
--- a/__init__.py 1969-12-31 16:00:00.000000000 -0800
+++ b/__init__.py 2018-10-17 21:45:04.908201161 -0700
@@ -29,6 +29,16 @@ import os
import importlib
import types
+_base = os.path.dirname(os.path.dirname(__file__))
+os.environ['GI_TYPELIB_PATH'] = os.path.join(_base, 'usr', 'lib',
+ 'x86_64-linux-gnu',
+ 'girepository-1.0')
+
+# Tell fontconfig where to find the sandboxed font files.
+os.environ["FONTCONFIG_PATH"] = os.path.join(_base, "etc/fonts/")
+os.environ["FONTCONFIG_FILE"] = os.path.join(_base, "etc/fonts/fonts.conf")
+os.environ["FONTCONFIG_SYSROOT"] = _base
+
_static_binding_error = ('When using gi.repository you must not import static '
'modules like "gobject". Please change all occurrences '
'of "import gobject" to "from gi.repository import GObject". '