Browse Source

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
pull/36/head
adam kaminski 4 years ago
committed by GitHub
parent
commit
c5c4f90b98
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      PVEDiscordDark.py

12
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():

Loading…
Cancel
Save