Skip to content

Commit

Permalink
tweak a few variable names to make pylint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
weaselkeeper committed Oct 5, 2014
1 parent c84c533 commit 9c8e681
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/pathcalc.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@
datefmt='%y.%m.%d %H:%M:%S')

# Setup logging to console.
console = logging.StreamHandler(sys.stderr)
console.setLevel(logging.WARN)
logging.getLogger(PROJECTNAME).addHandler(console)
CONSOLE = logging.StreamHandler(sys.stderr)
CONSOLE.setLevel(logging.WARN)
logging.getLogger(PROJECTNAME).addHandler(CONSOLE)
LOG = logging.getLogger(PROJECTNAME)


Expand Down Expand Up @@ -120,10 +120,15 @@ def get_args():
return _args


def run(_args):
""" Base run function """
print _args


# Here we start if called directly (the usual case.)
if __name__ == "__main__":
# This is where we will begin when called from CLI. No need for argparse
# unless being called interactively, so import it here
args = get_args()
ARGS = get_args()
# and now we can do, whatever it is, we do.
sys.exit(run(args))
sys.exit(run(ARGS))

0 comments on commit 9c8e681

Please sign in to comment.