From c692e6aaf52eb3ea39f213c02ff5f2a9b9810dfb Mon Sep 17 00:00:00 2001 From: Pierrick Koch Date: Fri, 19 Jul 2013 15:24:03 +0200 Subject: [PATCH] [builder] reload morse.core.blenderapi in setup fix #405 --- src/morse/builder/setup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/morse/builder/setup.py b/src/morse/builder/setup.py index 99fde0d1b..46b57e12d 100644 --- a/src/morse/builder/setup.py +++ b/src/morse/builder/setup.py @@ -333,6 +333,9 @@ def test(contr): if os.path.exists(os.path.join(dir, "morse/blender/main.py")): sys.path.append(os.path.join(dir, "morse/blender")) sys.path.append(os.path.join(dir, "morse/blender/human_interaction")) + import imp + import morse.core.blenderapi + imp.reload(morse.core.blenderapi) return print ("MORSE ERROR: could not find the MORSE libraries. Please run 'morse check' from the command line to solve this issue.") print ("Exiting the simulation!")