[SCM] Installer for game data files branch, gui, updated. 9092133f0b2589fd66ef16e6348f2c3989f9aa4c
Jon Dowland
jmtd at debian.org
Fri Sep 25 17:28:33 UTC 2009
The following commit has been merged in the gui branch:
commit 26906da9e7f4d06459778a361bd4af1e7b48acef
Author: Jon Dowland <jmtd at debian.org>
Date: Wed Sep 23 15:08:22 2009 +0100
only look for supported/*yaml
diff --git a/gdp.py b/gdp.py
index c4e660a..9a75399 100644
--- a/gdp.py
+++ b/gdp.py
@@ -6,8 +6,9 @@ class Controller:
def add_view(self,v):
self.view = v
def find_supported_games(self):
- for game in os.listdir("supported"):
- self.view.supported_game_added(game)
+ for game in [ x for x in os.listdir("supported") \
+ if len(x) >= 5 and x[-5:] == ".yaml"]:
+ self.view.supported_game_added(game)
def go(self):
self.find_supported_games()
self.view.go()
--
Installer for game data files
More information about the Pkg-games-commits
mailing list