File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 1212os .system ("title Python Example" )
1313print ("Initializing" )
1414def getchecksum ():
15- path = os .path .basename (__file__ )
16- if not os .path .exists (path ):
17- path = path [:- 2 ] + "exe"
18- md5_hash = hashlib .md5 ()
19- a_file = open (path ,"rb" )
20- content = a_file .read ()
21- md5_hash .update (content )
22- digest = md5_hash .hexdigest ()
23- return digest
15+ path = os .path .basename (__file__ )
16+ if not os .path .exists (path ):
17+ path = path [:- 2 ] + "exe"
18+ md5_hash = hashlib .md5 ()
19+ a_file = open (path ,"rb" )
20+ content = a_file .read ()
21+ md5_hash .update (content )
22+ digest = md5_hash .hexdigest ()
23+ return digest
2424
2525keyauthapp = api (
2626 name = "" ,
@@ -124,4 +124,4 @@ def getchecksum():
124124print (f"Current Session Validation Status: { keyauthapp .check ()} " )
125125print ("Exiting in 10 secs...." )
126126sleep (10 )
127- exit (0 )
127+ sys . exit (0 )
You can’t perform that action at this time.
0 commit comments