summaryrefslogtreecommitdiff
path: root/bubbob/command.py
blob: 71239ed4a585c9c262a8d10d0ba4f85ee3ad9215 (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

execfile('bb.py')