From 478836e85bcd59aed0d224a85cb3206acdc60799 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Thu, 16 Apr 2020 19:38:29 +0530 Subject: [PATCH] gst-env: Also look for `builddir` when hunting for a build dir --- gst-env.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst-env.py b/gst-env.py index 1f30a55..fe21286 100755 --- a/gst-env.py +++ b/gst-env.py @@ -27,10 +27,12 @@ from scripts.common import get_wine_shortpath SCRIPTDIR = os.path.dirname(os.path.realpath(__file__)) PREFIX_DIR = os.path.join(SCRIPTDIR, 'prefix') -# Use '_build' as the builddir instead of 'build' +# Look for the following build dirs: `build` `_build` `builddir` DEFAULT_BUILDDIR = os.path.join(SCRIPTDIR, 'build') if not os.path.exists(DEFAULT_BUILDDIR): DEFAULT_BUILDDIR = os.path.join(SCRIPTDIR, '_build') +if not os.path.exists(DEFAULT_BUILDDIR): + DEFAULT_BUILDDIR = os.path.join(SCRIPTDIR, 'builddir') TYPELIB_REG = re.compile(r'.*\.typelib$') SHAREDLIB_REG = re.compile(r'\.so|\.dylib|\.dll') -- 2.7.4