diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-12-19 21:26:23 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-12-19 21:26:23 +0100 |
commit | 0bb9e1bc17f95f002590f8395b056706dac7ce82 (patch) | |
tree | adc72ab41f9a921e3757f49c736262f29ae8a41f | |
parent | fbd6caa36c1e292ef8a8feccb033371d26d7165d (diff) | |
download | wireshark-0bb9e1bc17f95f002590f8395b056706dac7ce82.tar.gz |
Fix Python 3 compatibility in LocatePythonModule
Regression introduced with cb345eb4bd0149b4a71d6069f957600a83cc3417.
Change-Id: I625432ac4572d2449cb6981a158e46c560a81f1a
-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) |