Run update/install once, as it installs/updates everything in one go
This commit is contained in:
		
							parent
							
								
									58e5bc3668
								
							
						
					
					
						commit
						2811cc9b66
					
				|  | @ -31,6 +31,7 @@ def update(): | ||||||
|                     traceback.print_exc() |                     traceback.print_exc() | ||||||
|                     input(f'Required python module {module} not found, press enter to install it') |                     input(f'Required python module {module} not found, press enter to install it') | ||||||
|                     update_command() |                     update_command() | ||||||
|  |                     return | ||||||
|                 else: |                 else: | ||||||
|                     if hasattr(module, "__version__"): |                     if hasattr(module, "__version__"): | ||||||
|                         module_version = module.__version__ |                         module_version = module.__version__ | ||||||
|  | @ -42,6 +43,7 @@ def update(): | ||||||
|                             input(f'Required python module {module} is outdated ({module_version}<{remote_version}),' |                             input(f'Required python module {module} is outdated ({module_version}<{remote_version}),' | ||||||
|                                   ' press enter to upgrade it') |                                   ' press enter to upgrade it') | ||||||
|                             update_command() |                             update_command() | ||||||
|  |                             return | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| if __name__ == "__main__": | if __name__ == "__main__": | ||||||
|  |  | ||||||
|  | @ -1,6 +1,6 @@ | ||||||
| colorama>=0.4.3 | colorama>=0.4.3 | ||||||
| websockets>=8.1 | websockets>=8.1 | ||||||
| PyYAML>=5.3 | PyYAML>=5.3.1 | ||||||
| fuzzywuzzy>=0.18.0 | fuzzywuzzy>=0.18.0 | ||||||
| bsdiff4>=1.1.9 | bsdiff4>=1.1.9 | ||||||
| upnpy>=1.1.5 | upnpy>=1.1.5 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue