3f5f24738f26a635a0dab8a614f8e0d3fa98a041
2 # -*- coding: utf-8 -*-
4 lancement de l'application winwii
12 def main(wiimoteSupport
) :
14 from minwii
import MinWii
17 #modeResolution = (1024,768)
18 #modeResolution = (600,480)
19 #pygame.display.set_mode(modeResolution, pygame.NOFRAME)#, pygame.FULLSCREEN)
20 minwii
= MinWii(wiimoteSupport
=wiimoteSupport
)
22 # from gui.PGUConfiguration import PGUConfiguration
24 # modeResolution = (1024,768)
25 # window = pygame.display.set_mode(modeResolution)#,pygame.FULLSCREEN)
26 # pgu = PGUConfiguration(window)
29 if __name__
== "__main__" :
30 from os
.path
import realpath
, sep
32 from optparse
import OptionParser
34 usage
= "%prog instance_home products_conf_file [options]"
35 op
= OptionParser(usage
)
37 op
.add_option("--no-wii", dest
="wiimoteSupport"
38 , action
="store_false"
40 , help = u
"désactivation du support des wiimotes"
43 options
, args
= op
.parse_args()
44 wiimoteSupport
= options
.wiimoteSupport
46 minwiipath
= realpath(__file__
).split(sep
)
47 minwiipath
= minwiipath
[:-2]
48 minwiipath
= sep
.join(minwiipath
)
49 sys
.path
.insert(1, minwiipath
)