def test_all_lpy_controls(): from openalea.plantlab.lpycontrol import import_lpy_controls from openalea.deploy.shared_data import shared_data import openalea.lpy lpydir = shared_data(openalea.lpy.__path__, share_path='share/tutorial') for lpypath in lpydir.walkfiles('*.lpy'): import_lpy_controls(lpypath)
def import_lpy(self): from openalea.plantlab.lpycontrol import import_lpy_controls filename = QtGui.QFileDialog.getOpenFileName(self, 'Select L-Py file') if filename: import_lpy_controls(filename)