소스 검색

Added a simple pythonic configuration file.

master
Pavel Šimerda 9 년 전
부모
커밋
d20f79e6de
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. +2
    -0
      lib/invoice/cli.py

+ 2
- 0
lib/invoice/cli.py 파일 보기

@@ -19,6 +19,8 @@ class Application:

def __init__(self, template_path):
self._parse_args()
exec(open(os.path.expanduser(os.path.join(self.args.user_data, "config"))).read(),
{"__builtins__": None}, self.__dict__)
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")


불러오는 중...
취소
저장