Changeset: bfe5d74be981 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=bfe5d74be981
Modified Files:
        testing/Mtest.py.in
Branch: default
Log Message:

Mtest.py: more robust way of asking gem for its gempath


diffs (16 lines):

diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in
--- a/testing/Mtest.py.in
+++ b/testing/Mtest.py.in
@@ -3843,10 +3843,10 @@ def main(argv) :
         if os.environ.has_key('GEM_PATH'):
             gem_path = os.environ['GEM_PATH']
         else:
-            if CheckExec('gem'):
+            try:
                 proc = process.Popen(['gem', 'environment', 'gempath'], stdout 
= process.PIPE, stderr = process.PIPE)
                 gem_path, gem_err = proc.communicate()
-            else:
+            except:
                 gem_path = ''
         if gem_path:
             gem_path = os.pathsep + gem_path
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to