attribute contains a valid file path, and return this file path.
"""
ed = getStudyEditor()
+ if len(salome.sg.getSelected()) == 0 : return None
sobj = ed.study.FindObjectID(salome.sg.getSelected(0))
filepath = sobj.GetComment()
if not os.path.isfile(filepath):
from launcher import run_pytel
from genjobwindow import GenJobDialog
+from PyQt5.QtWidgets import QFileDialog
def create_case_pytel():
EficasForPytelAppli()
def edit_selected_case_pytel():
- EficasForPytelAppli(get_and_check_selected_file_path())
+ file=get_and_check_selected_file_path()
+ if file == None :
+ file, filt = QFileDialog.getOpenFileName(self, self.tr("Open Pytel file"), "", )
+ EficasForPytelAppli(fichier=file)
def get_params_from_selected_case():
"""