From 2fe8292c02d7070dede49316883c35ff67064483 Mon Sep 17 00:00:00 2001 From: Raaj Date: Mon, 14 Jan 2019 23:09:48 -0500 Subject: [PATCH] Windows-Python compile error fixed (#1020) --- examples/tutorial_api_python/CMakeLists.txt | 2 +- .../{openpose_python.py => openpose_test.py} | 0 scripts/travis/run_tests.sh | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename examples/tutorial_api_python/{openpose_python.py => openpose_test.py} (100%) diff --git a/examples/tutorial_api_python/CMakeLists.txt b/examples/tutorial_api_python/CMakeLists.txt index 0ee5be18..d35a3616 100644 --- a/examples/tutorial_api_python/CMakeLists.txt +++ b/examples/tutorial_api_python/CMakeLists.txt @@ -1,5 +1,5 @@ ### Add Python Test -configure_file(openpose_python.py openpose_python.py) +configure_file(openpose_test.py openpose_test.py) configure_file(1_body_from_image.py 1_body_from_image.py) configure_file(2_whole_body_from_image.py 2_whole_body_from_image.py) configure_file(3_heatmaps_from_image.py 3_heatmaps_from_image.py) diff --git a/examples/tutorial_api_python/openpose_python.py b/examples/tutorial_api_python/openpose_test.py similarity index 100% rename from examples/tutorial_api_python/openpose_python.py rename to examples/tutorial_api_python/openpose_test.py diff --git a/scripts/travis/run_tests.sh b/scripts/travis/run_tests.sh index bfc68f75..f0bf6a5b 100755 --- a/scripts/travis/run_tests.sh +++ b/scripts/travis/run_tests.sh @@ -40,7 +40,7 @@ if [[ $RUN_EXAMPLES == true ]] ; then if [[ $WITH_PYTHON == true ]] ; then echo "Python API C++: OpenPose demo..." cd build/examples/tutorial_api_python - python openpose_python.py --net_resolution -1x32 --image_dir ../../../examples/media/ --write_json output/ --display 0 --render_pose 0 + python openpose_test.py --net_resolution -1x32 --image_dir ../../../examples/media/ --write_json output/ --display 0 --render_pose 0 echo " " # Note: All Python examples require GUI fi