def METHOD_NAME(module):
	package = frappe.db.get_value("Module Def", module, "package")
	if not package:
		frappe.throw(f"Package must be set for custom Module <b>{module}</b>")
	path = os.path.join(get_package_path(package), scrub(module))
	if not os.path.exists(path):
		os.makedirs(path)
	return path