Magento2 – How to get Directory of a Module

Here is the code how to load your module directory:
        $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
        $directoryReader = $objectManager->create('\Magento\Framework\Module\Dir\Reader');
        $moduleDirectory = $directoryReader->getModuleDir('', 'Knowthemage_Hello');
        echo "Directory : ".$moduleDirectory;