# HG changeset patch # User peterjc # Date 1368199949 14400 # Node ID 4a0aa59062f7b1aff68b82dd6cea91710b9c8285 # Parent c70df461aae52b36796614beb388627518bd4450 Uploaded v0.0.11, take 9, debug output if can't find model diff -r c70df461aae5 -r 4a0aa59062f7 tools/effectiveT3/effectiveT3.py --- a/tools/effectiveT3/effectiveT3.py Thu May 09 12:20:46 2013 -0400 +++ b/tools/effectiveT3/effectiveT3.py Fri May 10 11:32:29 2013 -0400 @@ -90,14 +90,18 @@ stop_err("Return code %i from command:\n%s\n%s" % (return_code, err, stderr)) if not os.path.isdir(effectiveT3_dir): - stop_err("Effective T3 folder not found: %s" % effectiveT3_dir) + stop_err("Effective T3 folder not found: %r" % effectiveT3_dir) if not os.path.isfile(effectiveT3_jar): - stop_err("Effective T3 JAR file not found: %s" % effectiveT3_jar) + stop_err("Effective T3 JAR file not found: %r" % effectiveT3_jar) effectiveT3_model = os.path.join(effectiveT3_dir, "module", model) if not os.path.isfile(effectiveT3_model): - stop_err("Effective T3 model JAR file not found: %s" % effectiveT3_model) + sys.stderr.write("Contents of %r is %s\n" + % (os.path.join(effectiveT3_dir, "module"), + ", ".join(repr(p) for p in os.listdir(os.path.join(effectiveT3_dir, "module"))))) + sys.stderr.write("Main JAR was found: %r\n" % effectiveT3_jar) + stop_err("Effective T3 model JAR file not found: %r" % effectiveT3_model) #We will have write access whereever the output should be, temp_file = os.path.abspath(tabular_file + ".tmp")