<gh_stars>1-10
#!/usr/bin/env python
# -*- coding: utf8 -*-
# coding: utf8

# This is a module loader. It will reload all the files dedicated to the module
# each time it is reloaded. Therefore, any code modification will be taken into
# account.
# Moreover, because all files are loaded in the same module. All classes and
# global variables are reachable by any other file. When using a module class
# which is outside your file, you do not need to import it.
# However when modifying or adding a new file, you must take care that you do
# not override existing class/variable in the module, outside of your code file.

# Libs imports
import imp

# "supervisor_module" is built from all files in supervisor folder (apart from the loader)
SUPERVISOR_PATH = "./src/supervisor/"
imp.load_source("supervisor_module", SUPERVISOR_PATH + "abstract_service.py")
imp.load_source("supervisor_module", SUPERVISOR_PATH + "service_proxy.py")
Supervisor = imp.load_source("supervisor_module", SUPERVISOR_PATH + "supervisor_main.py").Supervisor

#!/usr/bin/env python
# -*- coding: utf8 -*-
# coding: utf8

# This is a module loader. It will reload all the files dedicated to the module
# each time it is reloaded. Therefore, any code modification will be taken into
# account.
# Moreover, because all files are loaded in the same module. All classes and
# global variables are reachable by any other file. When using a module class
# which is outside your file, you do not need to import it.
# However when modifying or adding a new file, you must take care that you do
# not override existing class/variable in the module, outside of your code file.

# Libs imports
import imp

# "supervisor_module" is built from all files in supervisor folder (apart from the loader)
SUPERVISOR_PATH = "./src/supervisor/"
imp.load_source("supervisor_module", SUPERVISOR_PATH + "abstract_service.py")
imp.load_source("supervisor_module", SUPERVISOR_PATH + "service_proxy.py")
Supervisor = imp.load_source("supervisor_module", SUPERVISOR_PATH + "supervisor_main.py").Supervisor
#!/usr/bin/env python # -*- coding: utf8 -*- # coding: utf8 # This is a module loader. It will reload all the files dedicated to the module # each time it is reloaded. Therefore, any code modification will be taken into # account. # Moreover, because all files are loaded in the same module. All classes and # global variables are reachable by any other file. When using a module class # which is outside your file, you do not need to import it. # However when modifying or adding a new file, you must take care that you do # not override existing class/variable in the module, outside of your code file. # Libs imports # "supervisor_module" is built from all files in supervisor folder (apart from the loader)