Cleanup: use self. directly in args assignment.

This commit is contained in:
Martin Zibricky 2012-06-26 21:49:33 +02:00
parent caa0e5e90c
commit 0d6b003572
1 changed files with 4 additions and 6 deletions

View File

@ -269,15 +269,13 @@ class MacosxBuilder(object):
Set up a variety of paths that we use throughout the build process.
"""
if self.args.branch:
branch_path = os.path.abspath(self.args.branch)
self.branch_path = os.path.abspath(self.args.branch)
else:
branch_path = self.config.get(u'paths', u'branch')
self.branch_path = branch_path
self.branch_path = self.config.get(u'paths', u'branch')
if self.args.docs:
docs_path = os.path.abspath(self.args.docs)
self.docs_path = os.path.abspath(self.args.docs)
else:
docs_path = self.config.get(u'paths', u'documentation')
self.docs_path = docs_path
self.docs_path = self.config.get(u'paths', u'documentation')
self.openlp_script = os.path.abspath(
os.path.join(branch_path, u'openlp.pyw'))