From c5c4f90b98e61c94f7986c83d3fe6caae1efcac4 Mon Sep 17 00:00:00 2001 From: adam kaminski Date: Tue, 29 Sep 2020 16:03:00 -0400 Subject: [PATCH] Add interpreter and cleanup imports + carriage returns 1) Added interpreter #!/usr/bin/python3 to allow for running as ./PVEDiscordDark.py 2) Remove redundant import of os after sys 3) Cleaned up carriage return characters ^M from file to resolve the following error: -bash: ./PVEDiscordDark.py: /usr/bin/python3^M: bad interpreter: No such file or directory --- PVEDiscordDark.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/PVEDiscordDark.py b/PVEDiscordDark.py index 07e7e1b..9d05a2a 100644 --- a/PVEDiscordDark.py +++ b/PVEDiscordDark.py @@ -1,13 +1,15 @@ -import sys,os +#!/usr/bin/python3 + +import os +import sys +import time import subprocess import urllib.request import os.path import shutil import argparse -import os -import time -ACTION = None +ACTION = None images = [ 'dd_cephblurp.png', 'dd_cephwhite.png', @@ -180,7 +182,7 @@ def main(): print('\n') exit(0) else: - if ACTION == 'install': + if ACTION == 'install': installTheme() else: if themeIsInstalled():