コード例 #1
0
ファイル: config.py プロジェクト: pombredanne/infi.app_repo
 def to_disk(self):
     if not path.exists(path.dirname(self.filepath)):
         makedirs(path.dirname(self.filepath))
     with fopen(self.filepath, 'w') as fd:
         fd.write(self.to_json())
コード例 #2
0
ファイル: utils.py プロジェクト: Annakan/infi.app_repo
def ensure_directory_exists(dirpath):
    if not path.exists(dirpath):
        makedirs(dirpath)
コード例 #3
0
def ensure_directory_exists(dirpath):
    if not path.exists(dirpath):
        makedirs(dirpath)
コード例 #4
0
ファイル: config.py プロジェクト: Infinidat/infi.app_repo
 def to_disk(self):
     if not path.exists(path.dirname(self.filepath)):
         makedirs(path.dirname(self.filepath))
     with fopen(self.filepath, 'w') as fd:
         fd.write(self.to_json())