[med-svn] [vista] 03/04: ENH: Removed assumption of gtm alias.

Luis Ibanez luisibanez-guest at moszumanska.debian.org
Mon Jan 13 22:23:29 UTC 2014


This is an automated email from the git hooks/post-receive script.

luisibanez-guest pushed a commit to branch master
in repository vista.

commit 8be3539c38d2b23594624a7994886ca2c12c4296
Author: Luis Ibanez <luis.ibanez at kitware.com>
Date:   Mon Jan 13 16:57:35 2014 -0500

    ENH: Removed assumption of gtm alias.
    
    Instead of expecting a gtm alias to exist in the users environment,
    here we contruct the explicit command:
    
                          $gtm_dist/mumps  -dir
    
    To be more self-contained.
---
 Python/vista/OSEHRAHelper.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Python/vista/OSEHRAHelper.py b/Python/vista/OSEHRAHelper.py
index 1dc32a5..196ebfb 100644
--- a/Python/vista/OSEHRAHelper.py
+++ b/Python/vista/OSEHRAHelper.py
@@ -355,7 +355,8 @@ class ConnectLinuxCache(ConnectMUMPS):
 class ConnectLinuxGTM(ConnectMUMPS):
   def __init__(self, logfile, instance, namespace, location='127.0.0.1'):
     super(ConnectMUMPS, self).__init__()
-    self.connection = pexpect.spawn('gtm', timeout=None)
+    gtm_command = os.getenv('gtm_dist')+'/mumps -dir'
+    self.connection = pexpect.spawn(gtm_command, timeout=None)
     if len(namespace) == 0:
         self.prompt = os.getenv("gtm_prompt")
         if self.prompt == None:

-- 
Alioth's /git/debian-med/git-commit-notice on /srv/git.debian.org/git/debian-med/vista.git



More information about the debian-med-commit mailing list