Return the path to Module $module, or false
if not found

@param  string       $module Module name or Namespace
@return string|false
4802
public function getPath($module)
    {
        // treat $module as a namespace
        $class = $module."\\SlenderModule";

        // Try to find class for path
        if (class_exists($class) ) {
            $reflector = new \ReflectionClass($class);
            $interfaces = $reflector->getInterfaceNames();
            if (is_string($interfaces)) {
                $interfaces = array($interfaces);
            }
            if (in_array('Slender\Interfaces\ModulePathProviderInterface',$interfaces)) {
                return call_user_func(array($class,'getModulePath'));
            }
        }

        // Give up
        return false;
    }
71397
public function module($module = null)
    {
        if (!is_null($module)) {
            $this->module = $module;
            return $this;
        } else {
            return $this->module ?: '';
        }
    }
863953
public static function getRoutesFilename($module, $type)
    {
        $class = new ReflectionClass($module);
        $dirname = dirname($class->getFileName());
        $baseFileName = sprintf(BaseModule::$patternRoutesFilename, $type);
        $routesSubdir = $dirname . DIRECTORY_SEPARATOR . static::$configsSubdir;
        $file = $routesSubdir . '/' . $baseFileName;
        if (is_file($file)) {
            return $file;
        }
        if ($module instanceof self) {
            throw new Exception("Routes list file '{$baseFileName}' not found in config(s) folder(s) for module " . $module->className());
        } else {
            return false;
        }
    }
986088
protected function findModule()
	{
		if($this->isGreenPage()) {
			$moduleName = $this->DesignModule;
			if($moduleName) {
				return Green::inst()->getDesignModule($moduleName);
			}
		}

		$url = $this->request->getURL();
		foreach(Green::inst()->getDesignModules() as $module) {
			if((string) $module->getConfiguration()->public_url == $url) {
				return $module;
			}
		}

		return false;
	}
157945
def find_module_path():
    """"""
    master_modname = __name__.split(".", 1)[0]
    master_module = sys.modules[master_modname]
    #return os.path.dirname(os.path.realpath(os.path.join(inspect.getsourcefile(endpoints), "..")))
    path = os.path.dirname(inspect.getsourcefile(master_module))
    return path
1162334
public function getModuleDir($module, $dir)
    {
        return $this->jsDir.DIRECTORY_SEPARATOR.$dir.DIRECTORY_SEPARATOR.$this->getModuleFileName($module);
    }
669624
public function getModulePath()
    {
        if ($this->_modulePath !== null) {
            return $this->_modulePath;
        } else {
            return $this->_modulePath = $this->getBasePath() . DIRECTORY_SEPARATOR . 'Modules';
        }
    }
1011036
private static function toModuleName($module)
    {
        $module = str_replace('-', ' ', $module);
        $module = explode(' ', ucwords($module));
        $module = implode('', $module);

        return $module;
    }
851565
public function removeFromUploadsDir($module)
    {
        // Create a path
        $path = $this->appConfig->getModuleUploadsDir($module);
        return $this->performRemoval($path);
    }
1222457
private function getPath($view, $module) {


		if(isset($module)) {

			if(isset($view['from'])) {

				return realpath(dirname($module['path']) . '/' . $view['from'] . '/Views/' . $view['name'] . '.php');

			} else {

				return realpath($module['path'] . '/Views/' . $view['name'] . '.php');
			}
		}
	}
993901
public function getIncorrectExtensions(\OxidEsales\Eshop\Core\Module\Module $module)
    {
        $incorrect = [];
        $rawExtensions = $module->getExtensions();

        foreach ($rawExtensions as $classToBePatched => $moduleClass) {
            if (NamespaceInformationProvider::isNamespacedClass($classToBePatched)
                 && (NamespaceInformationProvider::classBelongsToShopEditionNamespace($classToBePatched)
                      || (NamespaceInformationProvider::classBelongsToShopUnifiedNamespace($classToBePatched) && !class_exists($classToBePatched))
                    )
                ) {
                $incorrect[$classToBePatched] = $moduleClass;
            }
        }
        return $incorrect;
    }
592527
def get_namespace_url(module, version):
    
    module = module.strip('/')

    return '{module}/{name}'.format(
        module=get_namespace_module_url(module),
        name=get_namespace_file_name(module, version),
    )
600862
public function getModulePath($file, $asFileInfo = false)
    {
        $path = $this->moduleDirectory . ltrim($file, '/');
        if ($asFileInfo) {
            $path = new \SplFileInfo($path);
        }

        return $path;
    }
607624
public static function get($module) {
		if(self::$modules === array())
			self::initialize();

		if(!isset(self::$modules[$module]))
			return false;

		return self::$modules[$module];
	}
150054
public function getModulePath($slug)
    {
        $module = studly_case($slug);

        if (\File::exists($this->getPath()."/{$module}/")) {
            return $this->getPath()."/{$module}/";
        }

        return $this->getPath()."/{$slug}/";
    }
164808
function getNativeModuleDirectoryPath(module) {
        var path;

        if (module && module.uri) {
            path = decodeURI(module.uri);

            // Remove module name and trailing slash from path.
            path = path.substr(0, path.lastIndexOf("/"));
        }
        return path;
    }
85986
public static function exists($module)
	{
		if (array_key_exists($module, static::$modules))
		{
			return static::$modules[$module];
		}
		else
		{
			$paths = \Config::get('module_paths', array());

			foreach ($paths as $path)
			{
				if (is_dir($path.$module))
				{
					return $path.$module.DS;
				}
			}
		}

		return false;
	}