Fix font paths in matplotlib
We were double sandboxing searching for fonts.conf. This removes a
warning.
Change-Id: I130f336e38cb825353875dfbb79f424923556626
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/third_party/python/matplotlib/init.patch b/third_party/python/matplotlib/init.patch
index 8911145..6fc460a 100644
--- a/third_party/python/matplotlib/init.patch
+++ b/third_party/python/matplotlib/init.patch
@@ -36,7 +36,7 @@
+ gtk_runtime_base = os.path.join(runfiles_dir, "gtk_runtime")
+
+ # Tell fontconfig where to find matplotlib's sandboxed font files.
-+ os.environ["FONTCONFIG_PATH"] = os.path.join(gtk_runtime_base, "etc/fonts")
++ os.environ["FONTCONFIG_PATH"] = "etc/fonts"
+ os.environ["FONTCONFIG_FILE"] = "fonts.conf"
+ os.environ["FONTCONFIG_SYSROOT"] = gtk_runtime_base
+