From 2abb6075dc0d61d792c5b78900b1afad36db715c Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Mon, 31 Dec 2018 02:48:41 +0100 Subject: [PATCH 1/1] py: fix out of tree build testing --- examples/python/CMakeLists.txt | 1 + examples/python/actor-create/actor-create.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/python/CMakeLists.txt b/examples/python/CMakeLists.txt index 8c014b06ad..bbf438665c 100644 --- a/examples/python/CMakeLists.txt +++ b/examples/python/CMakeLists.txt @@ -7,6 +7,7 @@ foreach(example actor-create actor-yield exec-basic) --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms --setenv LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/lib --setenv PYTHONPATH=${CMAKE_BINARY_DIR}/lib + --cd ${CMAKE_CURRENT_SOURCE_DIR}/${example} ${CMAKE_HOME_DIRECTORY}/examples/python/${example}/${example}.tesh) endif() endforeach() diff --git a/examples/python/actor-create/actor-create.py b/examples/python/actor-create/actor-create.py index 2bc05b0783..52d4650162 100644 --- a/examples/python/actor-create/actor-create.py +++ b/examples/python/actor-create/actor-create.py @@ -67,7 +67,7 @@ if __name__ == '__main__': e = simgrid.Engine(sys.argv) # Then you should load a platform file, describing your simulated platform - e.load_platform("../platforms/small_platform.xml"); + e.load_platform("../../platforms/small_platform.xml"); # And now you have to ask SimGrid to actually start your actors. # @@ -92,7 +92,7 @@ if __name__ == '__main__': e.register_actor("sender", Sender) e.register_actor("forwarder", forwarder) # Once actors and functions are registered, just load the deployment file - e.load_deployment("actor-create/actor-create_d.xml") + e.load_deployment("actor-create_d.xml") # Once every actors are started in the engine, the simulation can start e.run(); -- 2.20.1