From c89f2419dd73824a317cb00b43226ccf06a8b041 Mon Sep 17 00:00:00 2001 From: pin Date: Thu, 28 Feb 2013 09:51:32 +0000 Subject: [PATCH 1/1] =?utf8?q?Refactoring.=20Suppression=20de=20la=20custo?= =?utf8?q?misation=20du=20path,=20inutile=20=C3=A0=20pr=C3=A9sent.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@408 fe552daf-6dbe-4428-90eb-1537e0879342 --- src/minwii/start.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/minwii/start.py b/src/minwii/start.py index a9d9582..7de9b7a 100755 --- a/src/minwii/start.py +++ b/src/minwii/start.py @@ -8,20 +8,17 @@ $URL$ """ +from optparse import OptionParser +import pygame +from app import MinWii def main(wiimoteSupport, fullscreen) : - import pygame - from app import MinWii pygame.init() minwii = MinWii(wiimoteSupport=wiimoteSupport, fullscreen=fullscreen) minwii.run() pygame.quit() if __name__ == "__main__" : - from os.path import realpath, sep - import sys - from optparse import OptionParser - usage = "%prog [options]" op = OptionParser(usage) @@ -38,8 +35,4 @@ if __name__ == "__main__" : u" [%default]") options, args = op.parse_args() - minwiipath = realpath(__file__).split(sep) - minwiipath = minwiipath[:-2] - minwiipath = sep.join(minwiipath) - sys.path.insert(1, minwiipath) main(options.wiimoteSupport, options.fullscreen) -- 2.20.1