diff options
| author | jvoisin | 2018-04-16 22:06:55 +0200 |
|---|---|---|
| committer | jvoisin | 2018-04-16 22:06:55 +0200 |
| commit | c5f51345029440ab80cfa1670d554a9d851d57c4 (patch) | |
| tree | 91096726e2457713a9ab710f77614f4f4b959b85 /main.py | |
| parent | 6893de6e585edbbc065c9d92f286d58608ab08c2 (diff) | |
Fix the main.py file
Diffstat (limited to 'main.py')
| -rwxr-xr-x | main.py | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -88,7 +88,7 @@ def __do_clean_async(is_lightweigth, q): | |||
| 88 | f = q.get() | 88 | f = q.get() |
| 89 | if f is None: # nothing more to process | 89 | if f is None: # nothing more to process |
| 90 | return | 90 | return |
| 91 | clean_meta(is_lightweigth, f) | 91 | clean_meta(f, is_lightweigth) |
| 92 | q.task_done() | 92 | q.task_done() |
| 93 | 93 | ||
| 94 | 94 | ||
| @@ -108,6 +108,7 @@ def main(): | |||
| 108 | return | 108 | return |
| 109 | 109 | ||
| 110 | else: # Thread the cleaning | 110 | else: # Thread the cleaning |
| 111 | mode = (args.lightweight is True) | ||
| 111 | q = Queue(maxsize=0) | 112 | q = Queue(maxsize=0) |
| 112 | threads = list() | 113 | threads = list() |
| 113 | for f in __get_files_recursively(args.files): | 114 | for f in __get_files_recursively(args.files): |
