Пример #1
0
def scratch_swp_base_name():
    filename = 'scratch.swp.p'
    dirname = os.path.join(config.data_dir(), 'scratch-crashes')
    os.makedirs(dirname, exist_ok=True)
    swpname = os.path.join(dirname, filename)
    return swpname
Пример #2
0
 def filename(self) -> str:
     """
     Return the filename path where the statics are saved
     """
     return os.path.join(config.data_dir(), "usage-statistics.json")