Function
lazy_convert_sqlite
(nsys_rep_file_path, sqlite_file_path)
Source from the content-addressed store, hash-verified
| 34 | |
| 35 | |
| 36 | def lazy_convert_sqlite(nsys_rep_file_path, sqlite_file_path): |
| 37 | if ( |
| 38 | not sqlite_file_path.is_file() |
| 39 | or nsys_rep_file_path.stat().st_mtime > sqlite_file_path.stat().st_mtime |
| 40 | ): |
| 41 | subprocess.check_call( |
| 42 | [ |
| 43 | "nsys", |
| 44 | "export", |
| 45 | "--type", |
| 46 | "sqlite", |
| 47 | "-o", |
| 48 | sqlite_file_path, |
| 49 | "--force-overwrite=true", |
| 50 | nsys_rep_file_path, |
| 51 | ] |
| 52 | ) |
| 53 | |
| 54 | |
| 55 | def shortest_common_supersequence(a, b): |
Tested by
no test coverage detected