Skip to content

Commit

Permalink
Partial fix for execution log
Browse files Browse the repository at this point in the history
  • Loading branch information
jagannatharjun committed Apr 2, 2020
1 parent dd63c76 commit f1f1bbc
Show file tree
Hide file tree
Showing 9 changed files with 938 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Builds/make-resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def allFiles(glob):

with open('resources.qrc', 'w') as rcc:
rcc.write('<!DOCTYPE RCC><RCC version="1.0">\n')
rcc.write('\t<qresource %s>\n' % (args.dirPrefix if 'prefix=\'' + args.dirPrefix + '\'' else ''))
rcc.write('\t<qresource %s>\n' % ('prefix=\'' + args.dirPrefix + '\'' if args.dirPrefix else ''))
rcc.writelines(['\t\t<file alias=\'%s\'>%s</file>\n' % x for x in ResourceFiles])
rcc.write('\t</qresource>\n')
rcc.write('\t<qresource>\n')
Expand All @@ -62,6 +62,6 @@ def allFiles(glob):

cmd = [os.path.join(os.path.dirname(os.path.realpath(__file__)), 'tools/rcc'), '-binary', '-o', args.output, 'resources.qrc']
print(' '.join(cmd))
subprocess.call(cmd)

os.remove('resources.qrc')
if not subprocess.call(cmd):
os.remove('resources.qrc')
Loading

0 comments on commit f1f1bbc

Please sign in to comment.