|
From: Bruno C. <bru...@us...> - 2009-12-05 05:21:47
|
This is an automated email from the git, the tree hashes are:
via 5764f65142d71ba87f867018cd5f9e0986284d0d (commit)
from 42619777c8db4f0fe39ad1171d03b9b595107c27 (commit)
- Log -----------------------------------------------------------------
commit 5764f65142d71ba87f867018cd5f9e0986284d0d
Author: Bruno Cardoso Lopes <bruno@keyser.(none)>
Date: Sat Dec 5 03:21:31 2009 -0200
rename some vars and function to avoid shadowing builtins
diff --git a/deadchannel.py b/deadchannel.py
index c237f90..8947aac 100755
--- a/deadchannel.py
+++ b/deadchannel.py
@@ -19,7 +19,7 @@ import os
# imports parser for command line arguments in sys.argv
import getopt
-def help():
+def help_message():
"""
Prints basic help for this game.
"""
@@ -50,7 +50,7 @@ def parse_opts(argv):
for o, a in opts:
if o in ("-h", "--help"):
usage()
- help()
+ help_message()
sys.exit(0)
def main(argv):
@@ -59,9 +59,9 @@ def main(argv):
"""
# set directories and files
abspath = os.path.abspath(argv[0])
- dir = os.path.dirname(abspath)
- DATADIR = os.path.join(dir, 'data')
- CODEDIR = os.path.join(dir, 'code')
+ tmpdir = os.path.dirname(abspath)
+ DATADIR = os.path.join(tmpdir, 'data')
+ CODEDIR = os.path.join(tmpdir, 'code')
DEFPREFFILE = os.path.join(DATADIR, 'default_preferences.cfg')
if os.name == 'posix':
HOMEDIR = os.environ['HOME']
-----------------------------------------------------------------------
Summary of changes:
deadchannel.py | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
--
Dead Channel is a sci-fi shoot 'em up game developed using pygame.
|