From 74f1cc43e48a64f26f37cc4bcbcb82942c660ffc Mon Sep 17 00:00:00 2001 From: NiranthS <44475481+NiranthS@users.noreply.github.com> Date: Thu, 23 Apr 2020 23:29:35 +0530 Subject: [PATCH] Update saveWorld.py --- examples/pybullet/examples/saveWorld.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/pybullet/examples/saveWorld.py b/examples/pybullet/examples/saveWorld.py index f6f6278ed..e4026770f 100644 --- a/examples/pybullet/examples/saveWorld.py +++ b/examples/pybullet/examples/saveWorld.py @@ -1,7 +1,10 @@ import pybullet as p import time +import pybullet_data p.connect(p.SHARED_MEMORY) + +p.setAdditionalSearchPath(pybullet_data.getDataPath()) timestr = time.strftime("%Y%m%d-%H%M%S") filename = "saveWorld" + timestr + ".py" p.saveWorld(filename)