diff options
Diffstat (limited to 'bubbob/command.py')
-rw-r--r-- | bubbob/command.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bubbob/command.py b/bubbob/command.py new file mode 100644 index 0000000..71239ed --- /dev/null +++ b/bubbob/command.py @@ -0,0 +1,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') |