projects
/
minwii.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactoring. Suppression de la customisation du path, inutile à présent.
[minwii.git]
/
src
/
minwii
/
start.py
diff --git
a/src/minwii/start.py
b/src/minwii/start.py
index
a9d9582
..
7de9b7a
100755
(executable)
--- 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) :
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__" :
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)
usage = "%prog [options]"
op = OptionParser(usage)
@@
-38,8
+35,4
@@
if __name__ == "__main__" :
u" [%default]")
options, args = op.parse_args()
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)
main(options.wiimoteSupport, options.fullscreen)