diff options
Diffstat (limited to 'lib/lufa/LUFA/StudioIntegration/VSIX/generate_caches.py')
| -rw-r--r-- | lib/lufa/LUFA/StudioIntegration/VSIX/generate_caches.py | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/lib/lufa/LUFA/StudioIntegration/VSIX/generate_caches.py b/lib/lufa/LUFA/StudioIntegration/VSIX/generate_caches.py index ab787e8ec..671bed9d5 100644 --- a/lib/lufa/LUFA/StudioIntegration/VSIX/generate_caches.py +++ b/lib/lufa/LUFA/StudioIntegration/VSIX/generate_caches.py | |||
| @@ -1,38 +1,38 @@ | |||
| 1 | """ | 1 | """ |
| 2 | LUFA Library | 2 | LUFA Library |
| 3 | Copyright (C) Dean Camera, 2017. | 3 | Copyright (C) Dean Camera, 2017. |
| 4 | 4 | ||
| 5 | dean [at] fourwalledcubicle [dot] com | 5 | dean [at] fourwalledcubicle [dot] com |
| 6 | www.lufa-lib.org | 6 | www.lufa-lib.org |
| 7 | """ | 7 | """ |
| 8 | 8 | ||
| 9 | import sys | 9 | import sys |
| 10 | sys.path.append("ProjectGenerator") | 10 | sys.path.append("ProjectGenerator") |
| 11 | 11 | ||
| 12 | 12 | ||
| 13 | def show_message(message): | 13 | def show_message(message): |
| 14 | print("[Project Generator] %s" % message) | 14 | print("[Project Generator] %s" % message) |
| 15 | sys.stdout.flush() | 15 | sys.stdout.flush() |
| 16 | 16 | ||
| 17 | 17 | ||
| 18 | def main(lufa_root_path): | 18 | def main(lufa_root_path): |
| 19 | try: | 19 | try: |
| 20 | from asf_avrstudio5_interface import PythonFacade | 20 | from asf_avrstudio5_interface import PythonFacade |
| 21 | except ImportError: | 21 | except ImportError: |
| 22 | print("Fatal Error: The ASF project generator is missing.") | 22 | print("Fatal Error: The ASF project generator is missing.") |
| 23 | return 1 | 23 | return 1 |
| 24 | 24 | ||
| 25 | p = PythonFacade(lufa_root_path) | 25 | p = PythonFacade(lufa_root_path) |
| 26 | 26 | ||
| 27 | show_message("Checking database sanity...") | 27 | show_message("Checking database sanity...") |
| 28 | p.check_extension_database_sanity(lufa_root_path) | 28 | p.check_extension_database_sanity(lufa_root_path) |
| 29 | 29 | ||
| 30 | show_message("Building cache files...") | 30 | show_message("Building cache files...") |
| 31 | p.generate_extension_cache_files(lufa_root_path) | 31 | p.generate_extension_cache_files(lufa_root_path) |
| 32 | 32 | ||
| 33 | show_message("Cache files created.") | 33 | show_message("Cache files created.") |
| 34 | return 0 | 34 | return 0 |
| 35 | 35 | ||
| 36 | 36 | ||
| 37 | if __name__ == "__main__": | 37 | if __name__ == "__main__": |
| 38 | sys.exit(main(sys.argv[1])) | 38 | sys.exit(main(sys.argv[1])) |
