diff options
author | John Wiegley <johnw@newartisans.com> | 2012-06-07 22:37:38 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-06-07 22:37:38 -0500 |
commit | b64dcf720205f1fe30cc630ec0e61baca7450bb4 (patch) | |
tree | 15743e7d74b95404d1fd08744e273aa9077459c8 /acprep | |
parent | c2cc47bc986fbceedf79af55eb87b46fa99fe497 (diff) | |
download | fork-ledger-b64dcf720205f1fe30cc630ec0e61baca7450bb4.tar.gz fork-ledger-b64dcf720205f1fe30cc630ec0e61baca7450bb4.tar.bz2 fork-ledger-b64dcf720205f1fe30cc630ec0e61baca7450bb4.zip |
Change self.prefix_dir -> self.options.prefix_dir
Diffstat (limited to 'acprep')
-rwxr-xr-x | acprep | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -390,8 +390,8 @@ class PrepareBuild(CommandLineApp): ######################################################################### def prefix_directory(self): - if self.prefix_dir: - return self.prefix_dir + if self.options.prefix_dir: + return self.options.prefix_dir else: return None @@ -399,7 +399,7 @@ class PrepareBuild(CommandLineApp): return join(os.environ['HOME'], "Products") def products_directory(self): - if not self.products_dir: + if not self.options.products_dir: products = self.default_products_directory() if not exists(products) or not isdir(products): @@ -407,15 +407,15 @@ class PrepareBuild(CommandLineApp): products = join(products, basename(self.source_dir)) - self.products_dir = products + self.options.products_dir = products - return self.products_dir + return self.options.products_dir def build_directory(self): - if not self.build_dir: - self.build_dir = join(self.products_directory(), - self.current_flavor) - return self.build_dir + if not self.options.build_dir: + self.options.build_dir = join(self.products_directory(), + self.current_flavor) + return self.optionsbuild_dir def ensure(self, dirname): if not exists(dirname): |