mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-19 09:50:33 +05:00
Pascale Noyret: made the doc reading of Yams working on all systems (default system viewer is used)
This commit is contained in:
parent
2c51e345a0
commit
431b3cc6de
@ -64,16 +64,13 @@ 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+="xdg-open "+maDoc+";"
|
||||
command+="export LD_LIBRARY_PATH=%s"%old_ld
|
||||
os.system(command)
|
||||
|
||||
|
||||
def PBOKPressed(self):
|
||||
if not(self.PrepareLigneCommande()) : return
|
||||
self.PBSavePressed(NomHypo=True)
|
||||
|
Loading…
Reference in New Issue
Block a user