Commit f79ac2d1 authored by Mathieu Duponchelle's avatar Mathieu Duponchelle 🐸
Browse files

Tests: the sys.meta_path trick does not work for python2

Instead, for python2 revert to manipulating gi.overrides.__path__
parent d64bbc1e
......@@ -25,4 +25,10 @@ class GstOverrideImport:
sys.modules[name] = module
return module
sys.meta_path.insert(0, GstOverrideImport())
if sys.version_info.major >= 3:
sys.meta_path.insert(0, GstOverrideImport())
import gi.overrides
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment