(file_name, image_file=True)
| 61 | |
| 62 | |
| 63 | def file_path_or_none(file_name, image_file=True): |
| 64 | if not image_file: |
| 65 | return ( |
| 66 | SOUND_DIR.format(file_name=file_name) |
| 67 | if file_name in RESOURCE_CRIES |
| 68 | else None |
| 69 | ) |
| 70 | return ( |
| 71 | MEDIA_DIR.format(file_name=file_name) if file_name in RESOURCE_IMAGES else None |
| 72 | ) |
| 73 | |
| 74 | |
| 75 | def with_iter(context, iterable=None): |
no outgoing calls
no test coverage detected