Browse Source
Merge pull request #27 from jonasled/patch-7
fixed script not working on Python Version below 3.6
pull/32/head
Weilbyte
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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')) |
|
|