Famcy/_util_/_fmanager.py
def importclass(self, module_url, class_name, otherwise=None):
		"""
		This is the helper function to help import a class at the
		module url. The otherwise keyword define the alternate return
		if anything wrong happens. 
		- Input:
			* module_url: a string that defines the url to the module. 
				the path must be separated with / and ends without /
			* class_name: a string that defines the class that we 
				are looking for. 
		- Output:
			* The class instance, or otherwise
		"""
		module_string = module_url.replace("/", ".").replace("\\", ".")
		try:
			class_inst = getattr(importlib.import_module(module_string), class_name)
		except:
			class_inst = otherwise

		return class_inst

		This is the helper function to help import a class at the
		module url. The otherwise keyword define the alternate return
		if anything wrong happens. 
		- Input:
			* module_url: a string that defines the url to the module. 
				the path must be separated with / and ends without /
			* class_name: a string that defines the class that we 
				are looking for. 
		- Output:
			* The class instance, or otherwise
		
This is the helper function to help import a class at the
module url. The otherwise keyword define the alternate return
if anything wrong happens.
Input:
module_url: a string that defines the url to the module.
the path must be separated with / and ends without
class_name: a string that defines the class that we
are looking for.
Output:
The class instance, or otherwise
This is the helper function to help import a class at the module url . The otherwise keyword define the alternate return if anything wrong happens . Input : module_url : a string that defines the url to the module . the path must be separated with / and ends without class_name : a string that defines the class that we are looking for . Output : The class instance or otherwise
def importclass(self, module_url, class_name, otherwise=None):
		module_string = module_url.replace("/", ".").replace("\\", ".")
		try:
			class_inst = getattr(importlib.import_module(module_string), class_name)
		except:
			class_inst = otherwise
		return class_inst
def importclass ( self , module_url , class_name , otherwise = None ) : module_string = module_url . replace ( "/" , "." ) . replace ( "\\" , "." ) try : class_inst = getattr ( importlib . import_module ( module_string ) , class_name ) except : class_inst = otherwise return class_inst
This is the helper function to help import a class at the
module url.
This is the helper function to help import a class at the module url .
"""
		This is the helper function to help import a class at the
		module url. The otherwise keyword define the alternate return
		if anything wrong happens. 
		- Input:
			* module_url: a string that defines the url to the module. 
				the path must be separated with / and ends without /
			* class_name: a string that defines the class that we 
				are looking for. 
		- Output:
			* The class instance, or otherwise
		"""
self
module_url
class_name
otherwise