Skip to content

Commit baf514d

Browse files
committed
dynamic path
1 parent e88655b commit baf514d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/enigma-protector.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
#! /usr/bin/env python3
1+
#!/usr/bin/env python3
22

33
# python3 -m venv .venv
44
# source .venv/bin/activate
55
# pip install maturin
66
# maturin develop -m pymwemu/Cargo.toml
77

88
import pymwemu
9+
import os
910

1011
emu = pymwemu.init64()
1112
emu.load_maps('./maps64/')
12-
emu.load_binary('/Users/brandon/Desktop/enigma/surprise.dll')
13+
emu.load_binary(os.path.join(os.path.expanduser('~'), 'Desktop', 'enigma', 'surprise.dll'))
1314

1415
emu.set_verbose(0)
1516
emu.set_reg('rdx', 1)

0 commit comments

Comments
 (0)