From: rnc Date: Fri, 23 Nov 2012 14:22:29 +0000 (+0000) Subject: Pascale Noyret: made the doc reading of Yams working on all systems (default system... X-Git-Tag: V6_6_0rc1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=431b3cc6de145f08ea557eacc46e6781a158c172;p=modules%2Fsmesh.git Pascale Noyret: made the doc reading of Yams working on all systems (default system viewer is used) --- diff --git a/src/Tools/YamsPlug/monYamsPlugDialog.py b/src/Tools/YamsPlug/monYamsPlugDialog.py index 6d293f6f3..c92765d78 100644 --- a/src/Tools/YamsPlug/monYamsPlugDialog.py +++ b/src/Tools/YamsPlug/monYamsPlugDialog.py @@ -64,15 +64,12 @@ class MonYamsPlugDialog(Ui_YamsPlugDialog,QWidget): maDoc=os.environ['DISTENE_YAMS_DOC_PDF'] except Exception: QMessageBox.warning( self, "Help unavailable", str(maDoc) + " not found") - try : - commande='kpdf '+maDoc - os.system (commande) - except Exception: - old_ld=os.getenv("LD_LIBRARY_PATH") - command="unset LD_LIBRARY_PATH;" - command+="okular "+maDoc+";" - command+="export LD_LIBRARY_PATH=%s"%old_ld - os.system(command) + old_ld=os.getenv("LD_LIBRARY_PATH") + command="unset LD_LIBRARY_PATH;" + command+="xdg-open "+maDoc+";" + command+="export LD_LIBRARY_PATH=%s"%old_ld + os.system(command) + def PBOKPressed(self): if not(self.PrepareLigneCommande()) : return