blob: a438e23f86e4b170f84705d9a58072c56c7f79f1 (
plain)
1
2
3
4
5
6
7
8
9
10
|
import os, sys
levels, ext = os.path.splitext(os.path.basename(sys.argv[1]))
for ext in ['.py', '.bin']:
levelfile = 'levels/%s%s' % (levels, ext)
if os.path.exists(levelfile):
break
sys.argv[1] = levelfile
exec(compile(open('bb.py', "rb").read(), 'bb.py', 'exec'))
|