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:
parent
deb49cb662
commit
fda12fb66d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue