diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-12-19 21:26:23 +0100 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2014-12-21 08:54:24 +0000 |
commit | fda12fb66d337322f8e5c52ca50eff30b2426d56 (patch) | |
tree | 04a70a56dccc4b62a62dea75d5c326be2fff51d5 /cmake/modules/LocatePythonModule.cmake | |
parent | deb49cb662b3d5465d3ce868b5162f570151e55e (diff) |
Fix Python 3 compatibility in LocatePythonModule
Regression introduced with cb345eb4bd0149b4a71d6069f957600a83cc3417.
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>
Diffstat (limited to 'cmake/modules/LocatePythonModule.cmake')
-rw-r--r-- | cmake/modules/LocatePythonModule.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/LocatePythonModule.cmake b/cmake/modules/LocatePythonModule.cmake index 813cf25b53..efc6c3ff2e 100644 --- a/cmake/modules/LocatePythonModule.cmake +++ b/cmake/modules/LocatePythonModule.cmake @@ -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) |