-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
60 lines (44 loc) · 1.58 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import os
from statics import Directories
# Making program required Direcory
try:
os.mkdir(Directories.LOG_DIR)
print(f"{Directories.LOG_DIR} Created!!")
except FileExistsError :
print(f"{Directories.LOG_DIR} Already Exsist")
#Creating The Sticker File
try :
with open(Directories.STRICKER_DIR,"x") as s_f:
print(f"{Directories.STRICKER_DIR} Created!!")
except FileExistsError :
print(f"{Directories.STRICKER_DIR} Already Exsist")
#Creating The Banned File
try :
with open(Directories.BANNED_DIR,"x") as b_f:
print(f"{Directories.BANNED_DIR} Created!!")
except FileExistsError:
print(f"{Directories.BANNED_DIR} Already Exsist")
#Creating The unvalidated File
try:
with open(Directories.UNVALIDATED,"x") as u_f:
print(f"{Directories.UNVALIDATED} Created!!")
except FileExistsError :
print(f"{Directories.UNVALIDATED} Already Exsist")
#Creating The generated QR Code output folder
try:
os.mkdir(Directories.GENERATED_OUTPUT)
print(f"{Directories.GENERATED_OUTPUT} Created!!")
except FileExistsError :
print(f"{Directories.GENERATED_OUTPUT} Already Exsist")
#Creating The generated DOCX output folder
try:
os.mkdir(Directories.GENERATED_DOCX)
print(f"{Directories.GENERATED_DOCX} Created!!")
except FileExistsError :
print(f"{Directories.GENERATED_DOCX} Already Exsist")
#Creating The Client Monitoring File
try :
os.mkdir(Directories.CLIENT_MONITORING_DIR)
print(f"{Directories.CLIENT_MONITORING_DIR} Created!!")
except FileExistsError :
print(f"{Directories.CLIENT_MONITORING_DIR} Already Exsist")