From 099203b69050791f0dad8f631d5d62e674ddf5a4 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sun, 30 May 2010 19:13:56 +0000 Subject: updated for new libdir layout which needs a different declare statment than the 0.41.4 release svn path=/trunk/; revision=13580 --- scripts/insert_declare.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts/insert_declare.py') diff --git a/scripts/insert_declare.py b/scripts/insert_declare.py index 472fb27f..15e0f58e 100755 --- a/scripts/insert_declare.py +++ b/scripts/insert_declare.py @@ -16,7 +16,7 @@ for root, dirs, files in os.walk('.'): pass # print "root: " + root for name in files: - m = re.search(".*-help\.pd$", name) + m = re.search(".*\.pd$", name) if m: helppatch = os.path.join(root, m.string) fd = open(helppatch, 'r') @@ -28,7 +28,8 @@ for root, dirs, files in os.walk('.'): print helppatch fd = open(helppatch, 'w') fd.write(firstline) - fd.write("#X declare -lib " + library.lower() + ";\n") +# fd.write("#X declare -lib " + library.lower() + ";\n") + fd.write("#X declare -path ..;\n") fd.writelines(contents) fd.close() -- cgit v1.2.1