Fix some unit test failures that were my fault
This commit is contained in:
parent
aac87d85c0
commit
12c01f6f3e
3 changed files with 45 additions and 7 deletions
|
@ -2,11 +2,16 @@
|
|||
|
||||
from pathlib import Path
|
||||
import sys
|
||||
import os
|
||||
|
||||
if len(sys.argv) < 2:
|
||||
sys.stderr.write("Please specify a search directory\n")
|
||||
if len(sys.argv) < 3:
|
||||
sys.stderr.write("Usage: {0} <prefix> <paths>...\n".format(sys.argv[0]))
|
||||
exit(2)
|
||||
|
||||
for search_path in sys.argv[1:]:
|
||||
for path in Path(search_path).rglob('*.wren'):
|
||||
prefix = sys.argv[1]
|
||||
search_paths = sys.argv[2:]
|
||||
|
||||
for search_path in search_paths:
|
||||
curr_path = os.path.join(prefix, search_path)
|
||||
for path in Path(curr_path).rglob('*.wren'):
|
||||
sys.stdout.write(str(path) + "\n")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue