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