Comment #2 on issue 578 by grompy: New keyword `Import Resource`
http://code.google.com/p/robotframework/issues/detail?id=578
Implemented this because I needed the keyword myself. Changes made:
@/robot/running/namespaces.py:
from robot.parsing.settings import Library, Variables, Resource
def import_resource(self, name, invalid_args=None, comment=None,
variables=None):
self._import_resource(Resource(None, name,
invalid_args=invalid_args, comment=comment), variables)
@/robot/libraries/BuiltIn.py:
def import_resource(self, path, *args):
NAMESPACES.current.import_resource(path.replace('/', os.sep),
list(args))
I believe that was all the changes I made to make it work.