aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/StudioIntegration/generate_caches.py
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2013-03-01 21:48:18 +0000
committerDean Camera <dean@fourwalledcubicle.com>2013-03-01 21:48:18 +0000
commit3383487debd4e4da351f971ab2c6dd90d78fc70c (patch)
tree81983c4548a248eb10896051466b277404c3aeb1 /LUFA/StudioIntegration/generate_caches.py
parent6019754b7a717d6a97e04687414e516cbbfdadae (diff)
downloadlufa-3383487debd4e4da351f971ab2c6dd90d78fc70c.tar.gz
lufa-3383487debd4e4da351f971ab2c6dd90d78fc70c.tar.bz2
lufa-3383487debd4e4da351f971ab2c6dd90d78fc70c.zip
Clean up Studio Integration cache generation script. Re-indent integration VSIX XML files.
Diffstat (limited to 'LUFA/StudioIntegration/generate_caches.py')
-rw-r--r--LUFA/StudioIntegration/generate_caches.py24
1 files changed, 13 insertions, 11 deletions
diff --git a/LUFA/StudioIntegration/generate_caches.py b/LUFA/StudioIntegration/generate_caches.py
index 9c70ebdf1..f5b6692a9 100644
--- a/LUFA/StudioIntegration/generate_caches.py
+++ b/LUFA/StudioIntegration/generate_caches.py
@@ -7,30 +7,32 @@
"""
import sys
-import os
sys.path.append("ProjectGenerator")
-def main():
+def show_message(message):
+ print "[Project Generator] %s" % message
+ sys.stdout.flush()
+
+
+def main(lufa_root_path):
try:
from asf_avrstudio5_interface import PythonFacade
except ImportError:
print "Fatal Error: The ASF project generator is missing."
return 1
- p = PythonFacade(os.path.abspath(__file__))
+ p = PythonFacade(lufa_root_path)
- print "[Project Generator] Checking database sanity..."
- sys.stdout.flush()
- p.check_extension_database_sanity(sys.argv[1])
+ show_message("Checking database sanity...")
+ p.check_extension_database_sanity(lufa_root_path)
- print "[Project Generator] Building cache files..."
- sys.stdout.flush()
- p.generate_extension_cache_files(sys.argv[1])
+ show_message("Building cache files...")
+ p.generate_extension_cache_files(lufa_root_path)
- print "[Project Generator] Cache files created."
+ show_message("Cache files created.")
return 0
if __name__ == "__main__":
- sys.exit(main())
+ sys.exit(main(sys.argv[1]))