(self)
| 115 | self.savedir = savedir |
| 116 | |
| 117 | def get_file_list(self): |
| 118 | return [ |
| 119 | b.decode() |
| 120 | for b in set( |
| 121 | subprocess.check_output( |
| 122 | 'git ls-files -- ":!:configs/*"', shell=True |
| 123 | ).splitlines() |
| 124 | ) |
| 125 | | set( # hard code, TODO: use config to exclude folders or files |
| 126 | subprocess.check_output( |
| 127 | "git ls-files --others --exclude-standard", shell=True |
| 128 | ).splitlines() |
| 129 | ) |
| 130 | ] |
| 131 | |
| 132 | @rank_zero_only |
| 133 | def save_code_snapshot(self): |