From 67abc9e7ec478a079aabf423e5f4b3b179f57764 Mon Sep 17 00:00:00 2001 From: Dilawar Singh Date: Fri, 28 Jun 2019 17:58:40 +0530 Subject: [PATCH] Update mgui.py Replacing call from internal API to user API. --- mgui.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mgui.py b/mgui.py index 0ecb96f..f71b4f3 100644 --- a/mgui.py +++ b/mgui.py @@ -65,8 +65,6 @@ import code import traceback import sys -sys.path.append('../python') -#sys.path.append('utils') import os from collections import defaultdict import posixpath # We use this to create MOOSE paths @@ -485,7 +483,7 @@ def getShellWidget(self): if the first is not available""" if not hasattr(self, 'shellWidget') or self.shellWidget is None: self.shellWidget = get_shell_class()( code.InteractiveInterpreter() - , message='MOOSE version %s' % (moose._moose.__version__) + , message='MOOSE version %s' % (moose.version()) ) self.shellWidget.interpreter.runsource('from moose import *') self.shellWidget.setVisible(False)