[game-data-packager] 11/19: Make $WORKDIR optional
Simon McVittie
smcv at debian.org
Tue Jan 13 11:34:38 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 980e00d67200660c2b383a82061471e7f50ed8c7
Author: Simon McVittie <smcv at debian.org>
Date: Tue Jan 13 10:10:52 2015 +0000
Make $WORKDIR optional
The Python code knows how to make a working directory when needed.
---
lib/game_data_packager/__init__.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/game_data_packager/__init__.py b/lib/game_data_packager/__init__.py
index 3227f74..f38d6bc 100644
--- a/lib/game_data_packager/__init__.py
+++ b/lib/game_data_packager/__init__.py
@@ -1631,7 +1631,6 @@ def load_yaml_games(workdir=None):
return games
def run_command_line():
- workdir = os.environ['WORKDIR']
logger.debug('Arguments: %r', sys.argv)
parser = argparse.ArgumentParser(prog='game-data-packager',
@@ -1640,7 +1639,7 @@ def run_command_line():
game_parsers = parser.add_subparsers(dest='shortname',
title='supported games', metavar='GAME')
- games = load_yaml_games(workdir)
+ games = load_yaml_games(os.environ.get('WORKDIR', None))
for g in sorted(games.keys()):
games[g].add_parser(game_parsers)
--
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