#NEWLINE# @ classmethod #NEWLINE# def _resolve( cls , path , factory_file ) : #NEWLINE# #INDENT# '\n        Resolve a migration instance from a file.\n\n        :param path: The path to factories directory\n        :type path: str\n\n        :param factory_file: The migration file\n        :type factory_file: str\n\n        :rtype: Factory\n        ' #NEWLINE# variables = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# name = factory_file #NEWLINE# factory_file = os . path . join ( path , factory_file ) #NEWLINE# with open ( factory_file ) as fh : #NEWLINE# #INDENT# exec ( fh . read ( ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , variables ) #NEWLINE# #UNINDENT# klass = variables [ inflection . camelize ( name ) ] #NEWLINE# instance = klass ( ) #NEWLINE# return instance