-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path__main__.py
More file actions
34 lines (29 loc) · 978 Bytes
/
__main__.py
File metadata and controls
34 lines (29 loc) · 978 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
31
32
33
34
__debugflag__ = False
__display__ = True
import copycatch as cc
if __name__ == "__main__":
import sys
if len(sys.argv) == 5:
ccObj = cc.CopyCatch(int(sys.argv[1]), int(sys.argv[2]),\
float(sys.argv[3]), float(sys.argv[4]))
#still need to check if arguments are integers or not
# lenSuspectedUsers = 0
# while lenSuspectedUsers == 0:
c, P_, U_ = ccObj.RunCopyCatch()
if __display__:
# print("c:")
# print(c)
print("\nP_:")
print(P_)
print("\nU_:")
print(U_)
print("\nlen(U_):")
print(str(len(U_)) + " suspicious users")
# lenSuspectedUsers = len(U_)
else:
if __debugflag__ == True:
print('Debugging')
cc.CopyCatch()
else:
print('You need to learn how to use this code')
#input("\nPress Enter to continue...")