def __get_rc_handle(self, root_dir):
        """ get the filepath and filehandle to the rc file for the environment """
        rc_path = os.path.join(root_dir, '.rc')
        env_path = os.path.join(root_dir, '.env')
        fh = open(rc_path, "w+")
        # .rc will always source .env
        fh.write((env_path, env_path) % source_template)
        return (rc_path, fh)
dataset/ETHPy150Open toumorokoshi/sprinter/sprinter/core/directory.py/Directory.__get_rc_handle/swapped operands of `%`