2 # -*- coding: utf-8 -*-
4 lancement de l'application winwii
12 def main(wiimoteSupport
) :
14 from app
import MinWii
16 minwii
= MinWii(wiimoteSupport
=wiimoteSupport
)
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 options
, args
= op
.parse_args()
35 wiimoteSupport
= options
.wiimoteSupport
37 minwiipath
= realpath(__file__
).split(sep
)
38 minwiipath
= minwiipath
[:-2]
39 minwiipath
= sep
.join(minwiipath
)
40 sys
.path
.insert(1, minwiipath
)