diff options
Diffstat (limited to 'scripts/insert_declare.py')
-rwxr-xr-x | scripts/insert_declare.py | 5 |
1 files changed, 3 insertions, 2 deletions
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() |