Lines Matching refs:directory
40 def output_file_name(directory, stem, extension):
41 return os.path.join(directory,
45 def cleanup_directory(directory):
48 pattern = output_file_name(directory, '*', extension)
53 def prepare_directory(directory):
54 """Create the output directory if it doesn't exist yet.
58 if os.path.exists(directory):
59 cleanup_directory(directory)
61 os.makedirs(directory)
123 # directory name in error messages, which would make comparisons
171 help="""Output directory.""")