We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 013019e commit b4c3f95Copy full SHA for b4c3f95
main.py
@@ -12,9 +12,11 @@
12
os.system("title Python Example")
13
print("Initializing")
14
def getchecksum():
15
- path = os.path.realpath(__file__)
+ path = os.path.basename(__file__)
16
+ if not os.path.exists(path):
17
+ path = path[:-2] + "exe"
18
md5_hash = hashlib.md5()
- a_file = open(path, "rb")
19
+ a_file = open(path,"rb")
20
content = a_file.read()
21
md5_hash.update(content)
22
digest = md5_hash.hexdigest()
0 commit comments