mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-08-10 22:41:51 +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):
|
def compatibility(mod_name, compatible):
|
||||||
if sys.platform not in compatible:
|
if sys.platform not in compatible:
|
||||||
mod = mod_name.split('.')[-1]
|
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()
|
exit()
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user