diff options
Diffstat (limited to 'tools/ThemeQRC.py')
-rwxr-xr-x | tools/ThemeQRC.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/ThemeQRC.py b/tools/ThemeQRC.py new file mode 100755 index 0000000..63de8c3 --- /dev/null +++ b/tools/ThemeQRC.py @@ -0,0 +1,17 @@ +#!/usr/bin/env python + +import os, sys, os.path + +print "<RCC version =\"1.0\">" +print "<qresource prefix=\"/themes/Default\">" +for (path, dirs, files) in os.walk(sys.argv[1]) : + for file in files : + filePath = os.path.join(path,file) + print "<file alias=\"%(alias)s\">%(path)s</file>" % { + "alias": filePath[len(sys.argv[1])+1:], + "path": filePath + } + +print "</qresource>" +print "</RCC>" + |