<s> import os <EOL> import sys <EOL> os . environ [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> args = sys . argv [ <NUM_LIT:1> : ] <EOL> if len ( args ) != <NUM_LIT:2> : <EOL> print "<STR_LIT>" <EOL> exit ( <NUM_LIT:1> ) <EOL> from kraken import plugins <EOL> from kraken . core . objects . locator import Locator <EOL> from kraken . core . objects . rig import Rig <EOL> guideRig = Rig ( ) <EOL> guideRig . loadRigDefinitionFile ( args [ <NUM_LIT:0> ] ) <EOL> rig = Rig ( ) <EOL> rig . loadRigDefinition ( guideRig . getRigBuildData ( ) ) <EOL> builder = plugins . getBuilder ( ) <EOL> builder . setOutputFolder ( args [ <NUM_LIT:1> ] ) <EOL> config = builder . getConfig ( ) <EOL> config . setMetaData ( '<STR_LIT>' , os . path . split ( args [ <NUM_LIT:0> ] ) [ <NUM_LIT:1> ] . partition ( '<STR_LIT:.>' ) [ <NUM_LIT:0> ] ) <EOL> config . setMetaData ( '<STR_LIT>' , True ) <EOL> config . setMetaData ( '<STR_LIT>' , False ) <EOL> config . setMetaData ( '<STR_LIT>' , True ) <EOL> builder . buildRig ( rig ) </s>
