mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-08-08 22:36:48 +02:00
beautify compatibility list
This commit is contained in:
3
jc/jc.py
3
jc/jc.py
@ -84,7 +84,8 @@ def errormessage(message):
|
||||
def compatibility(mod_name, compatible):
|
||||
if sys.platform not in compatible:
|
||||
mod = mod_name.split('.')[-1]
|
||||
errormessage(f'{mod} parser not compatible with your OS ({sys.platform}).\n Compatible platforms: {compatible}')
|
||||
compat_list = ', '.join(compatible)
|
||||
errormessage(f'{mod} parser not compatible with your OS ({sys.platform}).\n Compatible platforms: {compat_list}')
|
||||
exit()
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user