a9d9582efe21c4b0f3f5fbfc46de305d735961af
2 # -*- coding: utf-8 -*-
4 lancement de l'application winwii
12 def main(wiimoteSupport
, fullscreen
) :
14 from app
import MinWii
16 minwii
= MinWii(wiimoteSupport
=wiimoteSupport
, fullscreen
=fullscreen
)
20 if __name__
== "__main__" :
21 from os
.path
import realpath
, sep
23 from optparse
import OptionParser
25 usage
= "%prog [options]"
26 op
= OptionParser(usage
)
28 op
.add_option("--no-wii", dest
="wiimoteSupport"
29 , action
="store_false"
31 , help = u
"désactivation du support des wiimotes"
34 op
.add_option("--fullscreen", dest
="fullscreen"
37 , help = u
"activation du mode plein écran"
39 options
, args
= op
.parse_args()
41 minwiipath
= realpath(__file__
).split(sep
)
42 minwiipath
= minwiipath
[:-2]
43 minwiipath
= sep
.join(minwiipath
)
44 sys
.path
.insert(1, minwiipath
)
45 main(options
.wiimoteSupport
, options
.fullscreen
)