File: allmodules.py

package info (click to toggle)
solarwolf 1.5%2Bdfsg1-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,656 kB
  • sloc: python: 5,353; ansic: 159; makefile: 102; pascal: 50; sh: 27
file content (25 lines) | stat: -rw-r--r-- 639 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#all modules
#this is simply to ensure init type functions
#will work, because all needed game modules will
#be imported. groove on


#we'll just parse this string out and import everything in it
modules_string = """
game, gameplay, gamemenu, gamename, gamestart, gamesetup, gamewin,
gamehelp, gamepause, gamepref,
gfx, snd, txt, hud, levels, main, input, score,
objbox, objexplode, objguard, objpopshot, objtele,
objship, objshot, objsmoke, objtext, objwarp, stars, objpowerup, objasteroid
"""

def modules_import():
    mods = modules_string.split(',')
    for m in mods:
        m = m.strip()
        __import__(m)

modules_import()