From: gdd Date: Mon, 14 Jan 2013 17:01:13 +0000 (+0000) Subject: The help document would not open X-Git-Tag: pluginMGCleaner~179 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f9731f251881cab16e14b5a85504f8f0efec36fa;p=modules%2Fsmesh.git The help document would not open --- diff --git a/src/Tools/YamsPlug/monYamsPlugDialog.py b/src/Tools/YamsPlug/monYamsPlugDialog.py index c92765d78..43158e05d 100644 --- a/src/Tools/YamsPlug/monYamsPlugDialog.py +++ b/src/Tools/YamsPlug/monYamsPlugDialog.py @@ -20,7 +20,7 @@ # Modules Python # Modules Eficas -import os +import os, subprocess from YamsPlugDialog import Ui_YamsPlugDialog from monViewText import MonViewText from PyQt4.QtGui import * @@ -64,11 +64,8 @@ class MonYamsPlugDialog(Ui_YamsPlugDialog,QWidget): maDoc=os.environ['DISTENE_YAMS_DOC_PDF'] except Exception: QMessageBox.warning( self, "Help unavailable", str(maDoc) + " not found") - 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) + command="xdg-open "+maDoc+";" + subprocess.call(command, shell=True) def PBOKPressed(self):