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
def filename(self) -> str: """ Return the filename path where the statics are saved """ return os.path.join(config.data_dir(), "usage-statistics.json")