From 8169661b608225562f9a8ed04d2c9dc1da62da62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20=C5=A0imerda?= Date: Thu, 12 Jan 2012 17:00:02 +0100 Subject: [PATCH] Change data paths to {year}/data, (common) tmp and {year}/output. This helps to keep all data files and output files grouped together by year. Grouping by year allows easier archiving of old stuff. --- lib/invoice/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/invoice/cli.py b/lib/invoice/cli.py index bcb0b28..646192a 100644 --- a/lib/invoice/cli.py +++ b/lib/invoice/cli.py @@ -22,9 +22,9 @@ class Application: self.year = self.args.__dict__.pop("year") self.user_path = os.path.expanduser(self.args.__dict__.pop("user_data")) self.method = self.args.__dict__.pop("method") - self.data_path = os.path.join(self.user_path, "data", "{year}", "data", "{directory}") + self.data_path = os.path.join(self.user_path, "{year}", "data", "{directory}") self.tmp_path = os.path.join(self.user_path, "tmp") - self.output_path = os.path.join(self.user_path, "output", "{year}") + self.output_path = os.path.join(self.user_path, "{year}", "output") self.template_path = template_path self.db = invoice.db.Database( year = self.year,