--- /dev/null
+"""\r
+ LUFA Library\r
+ Copyright (C) Dean Camera, 2017.\r
+\r
+ dean [at] fourwalledcubicle [dot] com\r
+ www.lufa-lib.org\r
+"""\r
+\r
+import sys\r
+sys.path.append("ProjectGenerator")\r
+\r
+\r
+def show_message(message):\r
+ print("[Project Generator] %s" % message)\r
+ sys.stdout.flush()\r
+\r
+\r
+def main(lufa_root_path):\r
+ try:\r
+ from asf_avrstudio5_interface import PythonFacade\r
+ except ImportError:\r
+ print("Fatal Error: The ASF project generator is missing.")\r
+ return 1\r
+\r
+ p = PythonFacade(lufa_root_path)\r
+\r
+ show_message("Checking database sanity...")\r
+ p.check_extension_database_sanity(lufa_root_path)\r
+\r
+ show_message("Building cache files...")\r
+ p.generate_extension_cache_files(lufa_root_path)\r
+\r
+ show_message("Cache files created.")\r
+ return 0\r
+\r
+\r
+if __name__ == "__main__":\r
+ sys.exit(main(sys.argv[1]))\r