(in_folder, out_folder, n, a, m)
| 18 | subprocess.call(cmd, shell=True) |
| 19 | |
| 20 | def create_jobs(in_folder, out_folder, n, a, m): |
| 21 | result = [] |
| 22 | for name in os.listdir(in_folder): |
| 23 | base, ext = os.path.splitext(name) |
| 24 | if ext.lower() not in ['.jpg', '.jpeg', '.png']: |
| 25 | continue |
| 26 | out_name = '%d.%%d.png' % (m) |
| 27 | in_path = os.path.join(in_folder, name) |
| 28 | out_path = os.path.join(out_folder, base, out_name) |
| 29 | if os.path.exists(out_path): |
| 30 | continue |
| 31 | key = (base, n, m) |
| 32 | args = (in_path, out_path, n, a, m) |
| 33 | result.append((key, args)) |
| 34 | return result |
| 35 | |
| 36 | def worker(jobs, done): |
| 37 | while True: |
no outgoing calls
no test coverage detected
searching dependent graphs…