diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-05-31 10:54:54 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-05-31 11:28:53 +0200 |
commit | 0377727b0190157a2547d3e124002c3a9cee4e12 (patch) | |
tree | 5220eb6dec3f2507b029c90f701c3ae095fe4000 /scripts/configure_helper.py | |
parent | d3e729ff2c2a12a834c8f65ad8d2d76a38c57899 (diff) | |
download | ptxdist-0377727b0190157a2547d3e124002c3a9cee4e12.tar.gz ptxdist-0377727b0190157a2547d3e124002c3a9cee4e12.tar.xz |
configure_helper.py: call configure from the source tree
Some hand crafted configure scripts fail if the current directory is not
the toplevel source dir.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/configure_helper.py')
-rwxr-xr-x | scripts/configure_helper.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/configure_helper.py b/scripts/configure_helper.py index 612151c1a..a3624ccc4 100755 --- a/scripts/configure_helper.py +++ b/scripts/configure_helper.py @@ -283,7 +283,9 @@ def handle_dir(d, subdir): def handle_dir_configure(d, configure): configure_args = [] - p = subprocess.Popen([ configure, "--help" ], stdout=subprocess.PIPE, universal_newlines=True) + p = subprocess.Popen([ "./" + os.path.basename(configure), "--help" ], + stdout=subprocess.PIPE, universal_newlines=True, + cwd=os.path.dirname(configure)) lines = p.stdout.read().splitlines() for line in lines: if not re.match("^\s.*", line): |