Example #1
0
def get_all_modules():
	"""Return list of all modules"""
	import conf
	from webnotes.modules.utils import listfolders

	if hasattr(conf, 'modules_path'):
		return listfolders(conf.modules_path, 1)
Example #2
0
    def get_all_modules(self):
        """
			Return list of all modules
		"""
        import webnotes.defs
        from webnotes.modules.utils import listfolders

        if hasattr(webnotes.defs, 'modules_path'):
            return listfolders(webnotes.defs.modules_path, 1)
Example #3
0
	def get_all_modules(self):
		"""
			Return list of all modules
		"""
		import webnotes.defs
		from webnotes.modules.utils import listfolders

		if hasattr(webnotes.defs, 'modules_path'):
			return listfolders(webnotes.defs.modules_path, 1)