FML will now search '<mcpdir>/forge/accesstransformers' for user defined access transformer config files to be applied during forge setup

This commit is contained in:
Chicken Bones 2012-08-23 06:31:00 +10:00
parent 0806bc7b22
commit fe263206e2

View file

@ -217,6 +217,13 @@ def setup_fml(fml_dir, mcp_dir):
if os.path.isfile(forge_cfg):
self.logger.info(' Forge config detected')
forkcmd += ' "%s"' % forge_cfg
for dirname, dirnames, filenames in os.walk(os.path.join(mcp_dir, 'forge', 'accesstransformers')):
for filename in filenames:
accesstransformer = os.path.join(dirname, filename)
if os.path.isfile(accesstransformer):
self.logger.info(' Access Transformer "%s" detected' % filename)
forkcmd += ' "%s"' % accesstransformer
if not runcmd(self, forkcmd):
sys.exit(1)