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. Set up a variety of paths that we use throughout the build process.
""" """
if self.args.branch: if self.args.branch:
branch_path = os.path.abspath(self.args.branch) self.branch_path = os.path.abspath(self.args.branch)
else: else:
branch_path = self.config.get(u'paths', u'branch') self.branch_path = self.config.get(u'paths', u'branch')
self.branch_path = branch_path
if self.args.docs: if self.args.docs:
docs_path = os.path.abspath(self.args.docs) self.docs_path = os.path.abspath(self.args.docs)
else: else:
docs_path = self.config.get(u'paths', u'documentation') self.docs_path = self.config.get(u'paths', u'documentation')
self.docs_path = docs_path
self.openlp_script = os.path.abspath( self.openlp_script = os.path.abspath(
os.path.join(branch_path, u'openlp.pyw')) os.path.join(branch_path, u'openlp.pyw'))