X-Git-Url: https://scm.cri.minesparis.psl.eu/git/minwii.git/blobdiff_plain/1ddc7962970b99d8e6b3f760f99f1fdd76687987..46f3ffd7fdde386f41020171b5733e55a8e64a85:/src/app/start.py?ds=sidebyside diff --git a/src/app/start.py b/src/app/start.py deleted file mode 100755 index d1dc009..0000000 --- a/src/app/start.py +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -""" -lancement de l'application winwii - -$Id$ -$URL$ -""" - - - -def main(wimoteSupport) : - import pygame - from minwii import MinWii - - pygame.init() - #modeResolution = (1024,768) - #modeResolution = (600,480) - #pygame.display.set_mode(modeResolution, pygame.NOFRAME)#, pygame.FULLSCREEN) - MinWii(wimoteSupport=wimoteSupport) - # from gui.PGUConfiguration import PGUConfiguration - # pygame.init() - # modeResolution = (1024,768) - # window = pygame.display.set_mode(modeResolution)#,pygame.FULLSCREEN) - # pgu = PGUConfiguration(window) - pygame.quit() - -if __name__ == "__main__" : - from os.path import realpath, sep - import sys - from optparse import OptionParser - - usage = "%prog instance_home products_conf_file [options]" - op = OptionParser(usage) - - op.add_option("--no-wii", dest="wimoteSupport" - , action="store_false" - , default=True - , help = u"désactivation du support des wiimotes" - u" [%default]") - - options, args = op.parse_args() - wimoteSupport = options.wimoteSupport - - minwiipath = realpath(__file__).split(sep) - minwiipath = minwiipath[:-2] - minwiipath = sep.join(minwiipath) - sys.path.insert(1, minwiipath) - main(wimoteSupport) \ No newline at end of file