Loading MBsysC/readme_aux/interface_python.md +7 −5 Original line number Diff line number Diff line Loading @@ -101,6 +101,8 @@ Go in the in you project *WorkR* folder (you should see the *src* and *build* fo ```python # Firstly: include the path to your MBsysC-Python interface library import sys import os # to use os.path.join in WINDOWS # LINUX: sys.path.insert(1, "GitFolder/MBsysC/build/lib") # WINDOWS: Loading @@ -114,13 +116,13 @@ from mbs_dirdyn_py import * # Thirdly: load the mbs project file File = 'FileName.mbs' # Update the FileName # LINUX: my_path = sys.path[0]+"/../dataR/"+File # Complete path to the mbs file (auto-filled) mbs_data = MbsData(my_path) # Create and load the MbsData structure # LINUX: mbs_data = MbsData(my_path) # Create and load the MbsData structure from my_path # WINDOWS: my_path = sys.path[0]+"/../dataR/"+File # Complete path to the mbs file (auto-filled) buildPath = os.path.join(sys.path[0], "build","Release") mbs_data = MbsData(my_path, buildPath) # Create and load the MbsData structure buildPath = os.path.join(sys.path[0], "build","Release") # Choose Debug or Release mbs_data = MbsData(my_path, buildPath) # Create and load the MbsData structure from buildPath # Change whatever you need: Loading Loading
MBsysC/readme_aux/interface_python.md +7 −5 Original line number Diff line number Diff line Loading @@ -101,6 +101,8 @@ Go in the in you project *WorkR* folder (you should see the *src* and *build* fo ```python # Firstly: include the path to your MBsysC-Python interface library import sys import os # to use os.path.join in WINDOWS # LINUX: sys.path.insert(1, "GitFolder/MBsysC/build/lib") # WINDOWS: Loading @@ -114,13 +116,13 @@ from mbs_dirdyn_py import * # Thirdly: load the mbs project file File = 'FileName.mbs' # Update the FileName # LINUX: my_path = sys.path[0]+"/../dataR/"+File # Complete path to the mbs file (auto-filled) mbs_data = MbsData(my_path) # Create and load the MbsData structure # LINUX: mbs_data = MbsData(my_path) # Create and load the MbsData structure from my_path # WINDOWS: my_path = sys.path[0]+"/../dataR/"+File # Complete path to the mbs file (auto-filled) buildPath = os.path.join(sys.path[0], "build","Release") mbs_data = MbsData(my_path, buildPath) # Create and load the MbsData structure buildPath = os.path.join(sys.path[0], "build","Release") # Choose Debug or Release mbs_data = MbsData(my_path, buildPath) # Create and load the MbsData structure from buildPath # Change whatever you need: Loading