Personal tools
You are here: Home Forum Use Configure Eclipse to write python scripts for Salome

Configure Eclipse to write python scripts for Salome

Up to Use

Configure Eclipse to write python scripts for Salome

Posted by Jurij Sodja at January 23. 2013

Hi!

I have been trying to configure my Eclipse PyDev IDE so I could write Salome python scripts in Eclipse.

I modified PYTHONPATH so that it contains the SALOME modules. I can import salome, geompy, smesh etc at the beginning of the script like:

import salome
import geompy
import smesh, SMESH
import math

The IDE will not complain. However when I try to create a vertex like:

pnt1 = geompy.MakeVertex (0,0,0)

I can not access the method MakeVertex(). I can only access the method like geompy.makeText().

I have also tried to run eclipse from terminal. In the terminal I run first the Salome script runSession
to create the environment and then from there the Eclipse IDE.

What settings am I missing?

Thank you for your help!

Best!
Jurij

 

 

Powered by Ploneboard
Document Actions