mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-03 19:28:25 +02:00
if there's no more process in process_list, return 1
This commit is contained in:
parent
4d70a85fd3
commit
6af12b562c
1 changed files with 4 additions and 2 deletions
|
@ -80,6 +80,7 @@ def patch_track(self, tracks, total_track="?"):
|
||||||
for track_file, process in process_list.copy().items():
|
for track_file, process in process_list.copy().items():
|
||||||
if process is not None:
|
if process is not None:
|
||||||
if process.poll() is None:
|
if process.poll() is None:
|
||||||
|
print("still running...")
|
||||||
pass # if the process is still running
|
pass # if the process is still running
|
||||||
else: # process ended
|
else: # process ended
|
||||||
process_list.pop(track_file)
|
process_list.pop(track_file)
|
||||||
|
@ -103,9 +104,10 @@ def patch_track(self, tracks, total_track="?"):
|
||||||
if self.boolvar_del_track_after_conv.get(): os.remove(get_track_wu8(track_file))
|
if self.boolvar_del_track_after_conv.get(): os.remove(get_track_wu8(track_file))
|
||||||
else:
|
else:
|
||||||
process_list.pop(track_file)
|
process_list.pop(track_file)
|
||||||
|
|
||||||
if not(any(process_list.values())): return 1 # si il n'y a plus de processus
|
if not(any(process_list.values())): return 1 # si il n'y a plus de processus
|
||||||
return 0
|
|
||||||
|
if len(process_list): return 1
|
||||||
|
else: return 0
|
||||||
|
|
||||||
for i, track in enumerate(tracks):
|
for i, track in enumerate(tracks):
|
||||||
track_file = get_trackname(track=track)
|
track_file = get_trackname(track=track)
|
||||||
|
|
Loading…
Reference in a new issue