[game-data-packager] 07/09: Form valid plugin names if a game contains "-"
Simon McVittie
smcv at debian.org
Sun Oct 25 22:13:37 UTC 2015
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch master
in repository game-data-packager.
commit 899f5e69df5b2ac4ad1c9942d49c09adeefb9d46
Author: Simon McVittie <smcv at debian.org>
Date: Sun Oct 25 18:16:44 2015 +0000
Form valid plugin names if a game contains "-"
Coincidentally, none of our games that need custom Python code
contain "-" so far, but it's only a matter of time.
---
game_data_packager/__init__.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/game_data_packager/__init__.py b/game_data_packager/__init__.py
index d463541..69f4e68 100644
--- a/game_data_packager/__init__.py
+++ b/game_data_packager/__init__.py
@@ -980,6 +980,7 @@ def load_json(progress, games, jsonfile, jsondata):
data = json.loads(jsondata)
plugin = data.get('plugin', g)
+ plugin = plugin.replace('-', '_')
try:
plugin = importlib.import_module('game_data_packager.games.%s' %
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git
More information about the Pkg-games-commits
mailing list