Commit dfce427f authored by Olivier Lantsoght's avatar Olivier Lantsoght
Browse files

[Ctypes][BugFix] Specific symbolic path was only used if specific user path was also set

parent e602e6b7
......@@ -104,6 +104,7 @@ class MbsDirdyn(object):
Returns
-------
MbsDirdyn: self
A MbsDirdyn instance.
"""
if __DEBUG__:
......@@ -132,7 +133,7 @@ class MbsDirdyn(object):
self.user_path = user_path
# Path to user function used by partitionning modue
self.symbolic_path = self.mbs.symbolic_path
if user_path is not None:
if symbolic_path is not None:
project_path = bytes_to_str(self.mbs.project_path)
symbolic_path = os.path.join(project_path, symbolic_path)
# Error handeling
......
......@@ -114,7 +114,7 @@ class MbsPart(object):
self.user_path = user_path
# Path to user function used by partitionning modue
self.symbolic_path = self.mbs.symbolic_path
if user_path is not None:
if symbolic_path is not None:
project_path = self.mbs.project_path
symbolic_path = os.path.join(project_path, symbolic_path)
# Error handeling
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment