Browse Source

fixed script not working on Python Version below 3.6

pull/27/head
Jonas Leder 4 years ago
parent
commit
b7bdedd156
  1. 2
      PVEDiscordDark.py

2
PVEDiscordDark.py

@ -42,7 +42,7 @@ def cprint(color, text, bold=False, inline=False):
endc = '' endc = ''
if bold: if bold:
print(colors.BOLD) print(colors.BOLD)
print(f'{color}{text}{colors.NORMAL}', end=endc) print(color + text + colors.NORMAL, end=endc)
def getPVEVersion(): def getPVEVersion():
pv = subprocess.check_output('pveversion --verbose | grep pve-manager | cut -c 14- | cut -c -6', shell=True, stderr=open(os.devnull, 'w')) pv = subprocess.check_output('pveversion --verbose | grep pve-manager | cut -c 14- | cut -c -6', shell=True, stderr=open(os.devnull, 'w'))

Loading…
Cancel
Save