Browse Source

pep8 for init_homepath

84582af
Dirk Alders 1 year ago
parent
commit
bb9b02b79e
1 changed files with 6 additions and 2 deletions
  1. 6
    2
      init_homepath

+ 6
- 2
init_homepath View File

6
 import subprocess
6
 import subprocess
7
 import sys
7
 import sys
8
 
8
 
9
+
9
 class bcolors:
10
 class bcolors:
10
     HEADER = '\033[95m'
11
     HEADER = '\033[95m'
11
     OKBLUE = '\033[94m'
12
     OKBLUE = '\033[94m'
17
     BOLD = '\033[1m'
18
     BOLD = '\033[1m'
18
     UNDERLINE = '\033[4m'
19
     UNDERLINE = '\033[4m'
19
 
20
 
21
+
20
 def proceed(ask="Proceed?"):
22
 def proceed(ask="Proceed?"):
21
     while True:
23
     while True:
22
         uf = input("\n%s [Y/n/q]" % ask)
24
         uf = input("\n%s [Y/n/q]" % ask)
29
     else:
31
     else:
30
         return uf.lower() == "y"
32
         return uf.lower() == "y"
31
 
33
 
34
+
32
 def delete_destination():
35
 def delete_destination():
33
     return proceed("/!\\ Delete Destination including ALL files? /!\\")
36
     return proceed("/!\\ Delete Destination including ALL files? /!\\")
34
 
37
 
38
+
35
 def failed(error_msg):
39
 def failed(error_msg):
36
     print("    " + bcolors.WARNING + error_msg.rstrip("\n") + bcolors.ENDC)
40
     print("    " + bcolors.WARNING + error_msg.rstrip("\n") + bcolors.ENDC)
37
     print("    [" + bcolors.FAIL + " FAILED  " + bcolors.ENDC + "]")
41
     print("    [" + bcolors.FAIL + " FAILED  " + bcolors.ENDC + "]")
38
 
42
 
43
+
39
 def success():
44
 def success():
40
     print("    [" + bcolors.OKGREEN + " SUCCESS " + bcolors.ENDC + "]")
45
     print("    [" + bcolors.OKGREEN + " SUCCESS " + bcolors.ENDC + "]")
41
 
46
 
48
 )
53
 )
49
 print("Cloning the following repositories:")
54
 print("Cloning the following repositories:")
50
 for data in REPOS:
55
 for data in REPOS:
51
-	print("    %s --> %s" % data)
56
+    print("    %s --> %s" % data)
52
 if proceed():
57
 if proceed():
53
     for url, target in REPOS:
58
     for url, target in REPOS:
54
         command = "git clone %s %s" % (url, target)
59
         command = "git clone %s %s" % (url, target)
114
         # Create Symbolic Link
119
         # Create Symbolic Link
115
         os.symlink(src, dest)
120
         os.symlink(src, dest)
116
         success()
121
         success()
117
-

Loading…
Cancel
Save