mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-30 19:30:35 +05:00
The help document would not open
This commit is contained in:
parent
ab3feed3ba
commit
f9731f2518
@ -20,7 +20,7 @@
|
|||||||
# Modules Python
|
# Modules Python
|
||||||
# Modules Eficas
|
# Modules Eficas
|
||||||
|
|
||||||
import os
|
import os, subprocess
|
||||||
from YamsPlugDialog import Ui_YamsPlugDialog
|
from YamsPlugDialog import Ui_YamsPlugDialog
|
||||||
from monViewText import MonViewText
|
from monViewText import MonViewText
|
||||||
from PyQt4.QtGui import *
|
from PyQt4.QtGui import *
|
||||||
@ -64,11 +64,8 @@ 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")
|
||||||
old_ld=os.getenv("LD_LIBRARY_PATH")
|
command="xdg-open "+maDoc+";"
|
||||||
command="unset LD_LIBRARY_PATH;"
|
subprocess.call(command, shell=True)
|
||||||
command+="xdg-open "+maDoc+";"
|
|
||||||
command+="export LD_LIBRARY_PATH=%s"%old_ld
|
|
||||||
os.system(command)
|
|
||||||
|
|
||||||
|
|
||||||
def PBOKPressed(self):
|
def PBOKPressed(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user