Commit fd2315df authored by aknecht2's avatar aknecht2

Prefix now indexed from the front.

parent 0e53ff46
......@@ -26,7 +26,7 @@ with open(args.output, "w") as wh:
for f in files:
# Matches all db files
if f[-2:] == "db":
if not args.prefix or f[-len(args.prefix):] == args.prefix:
if not args.prefix or f[:-len(args.prefix)] == args.prefix:
first_line = ["attach \"%s\" as to_merge;" % (f,)]
write_lines = first_line + std_lines
for line in write_lines:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment