summaryrefslogtreecommitdiff
path: root/coreconf/pkg_config.py
diff options
context:
space:
mode:
Diffstat (limited to 'coreconf/pkg_config.py')
-rw-r--r--coreconf/pkg_config.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/coreconf/pkg_config.py b/coreconf/pkg_config.py
new file mode 100644
index 000000000..fef557298
--- /dev/null
+++ b/coreconf/pkg_config.py
@@ -0,0 +1,15 @@
+#!/usr/bin/env python
+
+import os
+import subprocess
+import sys
+
+def main():
+ try:
+ subprocess.Popen(['pkg-config'] + sys.argv[1:], stderr=open(os.devnull, 'wb')).wait()
+ except OSError:
+ # pkg-config is probably not installed
+ pass
+
+if __name__ == '__main__':
+ main()