def _loadmacros(self):
        """
        Load the SAS macros at the start of the session

        :return:
        """
        macro_path = os.path.dirname(os.path.realpath(__file__))
        fd = os.open(macro_path + '/' + 'libname_gen.sas', os.O_RDONLY)
        code = b'options nosource;\n'
        code += os.read(fd, 32767)
        code += b'\noptions source;'

        self._io._asubmit(code.decode(), results='text')
        os.close(fd)
def _loadmacros ( self ) : macro_path = os . path . dirname ( os . path . realpath ( __file__ ) ) fd = os . open ( macro_path + '/' + 'libname_gen.sas' , os . O_RDONLY ) code = b'options nosource;\n' code += os . read ( fd , 32767 ) code += b'\noptions source;' self . _io . _asubmit ( code . decode ( ) , results = 'text' ) os . close ( fd )
Load the SAS macros at the start of the session

        :return: