-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.py
More file actions
30 lines (23 loc) · 1012 Bytes
/
config.py
File metadata and controls
30 lines (23 loc) · 1012 Bytes
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
import os
cur_path = os.path.dirname(os.path.abspath(__file__))
MAX_time_out = 4
time_out_cnt = 0
mail_server_port = 25
args_mode = False
disp_lim = 0 # 0: don't display data -1: display all data >0: display first *disp_lim* lines of data
interval = 15
log_flag = False # enable logging or not
log_dir = os.path.join(cur_path, "log")
if not os.path.exists(log_dir):
os.mkdir(log_dir)
log_name = r"" # the name can be automatically generated if not specified
log_path = os.path.join(log_dir, log_name)
payload_root_path = os.path.join(cur_path, "sample")
filename_ext = ""
subject_ext = ""
# payload_token_dict = {
# b"<normal_data>": os.path.join(cur_path, "./sample/normal/normal_data"),
# b"<b64_normal_data>": os.path.join(cur_path, "./sample/normal/b64_normal_data"),
# b"<basic_qp_normal_data>": os.path.join(cur_path, "./sample/normal/basic_qp_normal_data"),
# b"<greeting>": os.path.join(cur_path, "./sample/normal/greeting"),
# }