ソースを参照

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.
master
Pavel Šimerda 9年前
コミット
8169661b60
1個のファイルの変更2行の追加2行の削除
  1. +2
    -2
      lib/invoice/cli.py

+ 2
- 2
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,


読み込み中…
キャンセル
保存