Commit f7a95a46 authored by Sebastien Timmermans's avatar Sebastien Timmermans 🎹

Update interface_python.md after test on ST computer : working on windows 10, pyhton 2.7 !

parent 9572788f
Pipeline #4703 passed with stages
in 13 minutes and 4 seconds
......@@ -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:
......@@ -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:
......
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