Skip to content

Commit b4c3f95

Browse files
authored
fixed compilation issues
1 parent 013019e commit b4c3f95

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
os.system("title Python Example")
1313
print("Initializing")
1414
def getchecksum():
15-
path = os.path.realpath(__file__)
15+
path = os.path.basename(__file__)
16+
if not os.path.exists(path):
17+
path = path[:-2] + "exe"
1618
md5_hash = hashlib.md5()
17-
a_file = open(path, "rb")
19+
a_file = open(path,"rb")
1820
content = a_file.read()
1921
md5_hash.update(content)
2022
digest = md5_hash.hexdigest()

0 commit comments

Comments
 (0)