mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-19 13:10:34 +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,15 +64,12 @@ class MonYamsPlugDialog(Ui_YamsPlugDialog,QWidget):
|
|||||||
maDoc=os.environ['DISTENE_YAMS_DOC_PDF']
|
maDoc=os.environ['DISTENE_YAMS_DOC_PDF']
|
||||||
except Exception:
|
except Exception:
|
||||||
QMessageBox.warning( self, "Help unavailable", str(maDoc) + " not found")
|
QMessageBox.warning( self, "Help unavailable", str(maDoc) + " not found")
|
||||||
try :
|
old_ld=os.getenv("LD_LIBRARY_PATH")
|
||||||
commande='kpdf '+maDoc
|
command="unset LD_LIBRARY_PATH;"
|
||||||
os.system (commande)
|
command+="xdg-open "+maDoc+";"
|
||||||
except Exception:
|
command+="export LD_LIBRARY_PATH=%s"%old_ld
|
||||||
old_ld=os.getenv("LD_LIBRARY_PATH")
|
os.system(command)
|
||||||
command="unset LD_LIBRARY_PATH;"
|
|
||||||
command+="okular "+maDoc+";"
|
|
||||||
command+="export LD_LIBRARY_PATH=%s"%old_ld
|
|
||||||
os.system(command)
|
|
||||||
|
|
||||||
def PBOKPressed(self):
|
def PBOKPressed(self):
|
||||||
if not(self.PrepareLigneCommande()) : return
|
if not(self.PrepareLigneCommande()) : return
|
||||||
|
Loading…
Reference in New Issue
Block a user