uninstalled: Make the regex to look for plugin paths more generic
authorThibault Saunier <thibault.saunier@osg.samsung.com>
Mon, 24 Apr 2017 18:58:07 +0000 (15:58 -0300)
committerThibault Saunier <thibault.saunier@osg.samsung.com>
Mon, 24 Apr 2017 19:00:17 +0000 (16:00 -0300)
We might end up with spurious paths but it is no big deal.

gst-uninstalled.py

index acd91b3..d5f82b7 100755 (executable)
@@ -45,7 +45,7 @@ def get_subprocess_env(options):
 
     sharedlib_reg = re.compile(r'\.so|\.dylib|\.dll')
     typelib_reg = re.compile(r'.*\.typelib$')
-    pluginpath_reg = re.compile(r'lib\w*' + os.path.normpath('/gstreamer-1.0/'))
+    pluginpath_reg = re.compile(r'lib.*' + os.path.normpath('/gstreamer-1.0/'))
 
     if os.name is 'nt':
         lib_path_envvar = 'PATH'