From b64dcf720205f1fe30cc630ec0e61baca7450bb4 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 7 Jun 2012 22:37:38 -0500 Subject: Change self.prefix_dir -> self.options.prefix_dir --- acprep | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'acprep') diff --git a/acprep b/acprep index 1118babe..a9189e32 100755 --- a/acprep +++ b/acprep @@ -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): -- cgit v1.2.3