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:
parent
0806bc7b22
commit
fe263206e2
1 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue