Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def run_process(args):
"""Process qrc files."""
# Generate qrc file based on the content of the resources folder
# Create palette and resources png images
print('Generating palette image ...')
create_palette_image()
print('Generating images ...')
create_images()
print('Generating qrc ...')
generate_qrc_file()
print('Converting .qrc to _rc.py and/or .rcc ...')
os.chdir(args.qrc_dir)
for qrc_file in glob.glob('*.qrc'):
# get name without extension
filename = os.path.splitext(qrc_file)[0]
print(filename, '...')
ext = '_rc.py'
ext_c = '.rcc'
# Create variables SCSS files and compile SCSS files to QSS
print('Compiling SCSS/SASS files to QSS ...')
create_qss()