\r
\r
def show_message(message):\r
- print "[Project Generator] %s" % message\r
- sys.stdout.flush()\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
+ 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
+ p = PythonFacade(lufa_root_path)\r
\r
- show_message("Checking database sanity...")\r
- p.check_extension_database_sanity(lufa_root_path)\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
+ 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
+ show_message("Cache files created.")\r
+ return 0\r
\r
\r
if __name__ == "__main__":\r