Commit f7a95a46 authored by Sébastien Timmermans's avatar Sébastien Timmermans
Browse files

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

parent 9572788f
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -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: