From 7e00360a3fa89bcecaacfe00f5fbe3ea13e21037 Mon Sep 17 00:00:00 2001 From: John Mandereau Date: Mon, 25 Feb 2008 14:34:26 +0100 Subject: [PATCH] Try to use base name of regtests file names --- buildscripts/lys-to-tely.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/buildscripts/lys-to-tely.py b/buildscripts/lys-to-tely.py index c026522434..236aacb920 100644 --- a/buildscripts/lys-to-tely.py +++ b/buildscripts/lys-to-tely.py @@ -80,6 +80,14 @@ for opt in options: else: raise Exception ('unknown option: ' + o) +def shorten_file_name (n): + # ugh, regtests file names appear as full paths in GUB builds + # we try to do something here + b = os.path.basename (n) + if os path.exists (b): + return b + return n + def name2line (n): # UGR s = r""" @@ -98,6 +106,7 @@ if files: name = os.path.basename (name) template = template % vars () + files = map (shorten_file_name, files) files.sort () s = "\n".join (map (name2line, files)) s = template.replace (include_snippets, s, 1) -- 2.39.5