Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions examples/others/caduceus/reduced/debug/debug_scene.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
import os
import imp
import platform
from sys import argv

Expand All @@ -12,7 +11,8 @@
+"Please install it : https://github.com/SofaDefrost/STLIB")

# MOR IMPORT
from mor.utility import sceneCreation as u
from mor.utility import sceneCreation as sc
from mor.utility import utility as u
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
from mor.utility import utility as u
from mor.utility import utility as util


slash = '/'
if "Windows" in platform.platform():
Expand All @@ -21,7 +21,7 @@
# Our Original Scene IMPORT
originalScene = os.path.dirname(os.path.abspath(__file__)) + "/../../caduceusNG.pyscn"
originalScene = os.path.normpath(originalScene)
originalScene = imp.load_source(originalScene.split(slash)[-1], originalScene)
originalScene = u.load_source(originalScene.split(slash)[-1], originalScene)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
originalScene = u.load_source(originalScene.split(slash)[-1], originalScene)
originalScene = util.load_source(originalScene.split(slash)[-1], originalScene)


def createScene(rootNode):

Expand All @@ -33,4 +33,4 @@ def createScene(rootNode):

pathToNode = 'Snake'

u.createDebug(rootNode,pathToNode,stateFileName)
sc.createDebug(rootNode,pathToNode,stateFileName)
8 changes: 4 additions & 4 deletions examples/others/hexaBeam/reduced/debug/debug_scene.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
import os
import imp
import platform
from sys import argv

Expand All @@ -12,7 +11,8 @@
+"Please install it : https://github.com/SofaDefrost/STLIB")

# MOR IMPORT
from mor.utility import sceneCreation as u
from mor.utility import sceneCreation as sc
from mor.utility import utility as u

slash = '/'
if "Windows" in platform.platform():
Expand All @@ -21,7 +21,7 @@
# Our Original Scene IMPORT
originalScene = os.path.dirname(os.path.abspath(__file__)) + "/../../hexaBeam.pyscn"
originalScene = os.path.normpath(originalScene)
originalScene = imp.load_source(originalScene.split(slash)[-1], originalScene)
originalScene = u.load_source(originalScene.split(slash)[-1], originalScene)

def createScene(rootNode):

Expand All @@ -33,4 +33,4 @@ def createScene(rootNode):

pathToNode = 'M1'

u.createDebug(rootNode,pathToNode,stateFileName)
sc.createDebug(rootNode,pathToNode,stateFileName)
8 changes: 4 additions & 4 deletions examples/softRobots/finger/reduced/debug/debug_scene.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
import os
import imp
import platform
from sys import argv

Expand All @@ -12,7 +11,8 @@
+"Please install it : https://github.com/SofaDefrost/STLIB")

# MOR IMPORT
from mor.utility import sceneCreation as u
from mor.utility import sceneCreation as sc
from mor.utility import utility as u

slash = '/'
if "Windows" in platform.platform():
Expand All @@ -21,7 +21,7 @@
# Our Original Scene IMPORT
originalScene = os.path.dirname(os.path.abspath(__file__)) + "/../../finger.pyscn"
originalScene = os.path.normpath(originalScene)
originalScene = imp.load_source(originalScene.split(slash)[-1], originalScene)
originalScene = u.load_source(originalScene.split(slash)[-1], originalScene)

def createScene(rootNode):

Expand All @@ -33,4 +33,4 @@ def createScene(rootNode):

pathToNode = 'finger'

u.createDebug(rootNode,pathToNode,stateFileName)
sc.createDebug(rootNode,pathToNode,stateFileName)
8 changes: 4 additions & 4 deletions examples/softRobots/sofiaLeg/reduced/debug/debug_scene.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
import os
import imp
import platform
from sys import argv

Expand All @@ -12,7 +11,8 @@
+"Please install it : https://github.com/SofaDefrost/STLIB")

# MOR IMPORT
from mor.utility import sceneCreation as u
from mor.utility import sceneCreation as sc
from mor.utility import utility as u

slash = '/'
if "Windows" in platform.platform():
Expand All @@ -21,7 +21,7 @@
# Our Original Scene IMPORT
originalScene = os.path.dirname(os.path.abspath(__file__)) + "/../../sofiaLeg.py"
originalScene = os.path.normpath(originalScene)
originalScene = imp.load_source(originalScene.split(slash)[-1], originalScene)
originalScene = u.load_source(originalScene.split(slash)[-1], originalScene)

def createScene(rootNode):

Expand All @@ -33,4 +33,4 @@ def createScene(rootNode):

pathToNode = 'SofiaLeg'

u.createDebug(rootNode,pathToNode,stateFileName)
sc.createDebug(rootNode,pathToNode,stateFileName)
Loading