Fix Python 3 compatibility in LocatePythonModule

Regression introduced with cb345eb4bd.

Change-Id: I625432ac4572d2449cb6981a158e46c560a81f1a
Reviewed-on: https://code.wireshark.org/review/5883
Reviewed-by: Maarten Bezemer <maarten.bezemer@gmail.com>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
Peter Wu 2014-12-19 21:26:23 +01:00 committed by Alexis La Goutte
parent deb49cb662
commit fda12fb66d
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ function(LOCATE_PYTHON_MODULE module)
# Use the (native) python impl module to find the location of the requested module
execute_process(COMMAND "${PYTHON_EXECUTABLE}" "-c"
"import imp; print imp.find_module('${module}')[1]"
"import imp; print(imp.find_module('${module}')[1])"
RESULT_VARIABLE _${module}_status
OUTPUT_VARIABLE _${module}_location
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)