D | test_config_script.py | 40 def output_file_name(directory, stem, extension): argument 41 return os.path.join(directory, 45 def cleanup_directory(directory): argument 48 pattern = output_file_name(directory, '*', extension) 53 def prepare_directory(directory): argument 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 [all …]
|