[commit] r1524 - trunk/Tests/GPyUnit/util

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Mon Sep 12 10:25:12 CDT 2011


Author: ksmyth
Date: Mon Sep 12 10:25:12 2011
New Revision: 1524

Log:
register_if_not_registered(.xmp): check for .mta existance

Modified:
   trunk/Tests/GPyUnit/util/gme.py

Modified: trunk/Tests/GPyUnit/util/gme.py
==============================================================================
--- trunk/Tests/GPyUnit/util/gme.py	Mon Sep 12 10:17:02 2011	(r1523)
+++ trunk/Tests/GPyUnit/util/gme.py	Mon Sep 12 10:25:12 2011	(r1524)
@@ -150,7 +150,7 @@
 def register_if_not_registered(file):
 	"Register an xme or mga if it has not already been registered"
 	if os.path.splitext(file)[1] == ".xmp":
-		if not is_registered(os.path.basename(os.path.splitext(file)[0])):
+		if not is_registered(os.path.basename(os.path.splitext(file)[0])) or not os.path.isfile(get_paradigm_file(os.path.splitext(os.path.basename(file))[0])):
 			regxmp(file)
 		return
 	


More information about the gme-commit mailing list