This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get list of data files | |
# Only get data files that are for the current target | |
regex = re.compile( | |
r"([a-zA-Z_/-]+)(config|scripts)(/(nu|i)gus({})?)?/([a-zA-Z]+\.yaml)".format(target.split(".")[3]) | |
) | |
data_files = [ | |
data_file.group(0) | |
for data_file in [regex.match(data_file) for data_file in b.cmake_cache["NUCLEAR_MODULE_DATA_FILES"]] | |
if data_file is not None | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import json, optparse, sys | |
try: | |
import PIL.Image, PIL.PngImagePlugin | |
except: | |
print >> sys.stderr, "Unable to import Python Imaging Library. Please ensure that it is installed." | |
sys.exit(1) |