sonic-buildimage/src/sonic-ctrmgrd
Joe LeVeque ee1383791c
[sonic-py-common] Add 'general' module with load_module_from_source() function (#7167)
#### Why I did it

To eliminate the need to write duplicate code in order to import a Python module from a source file.

#### How I did it

Add `general` module to sonic-py-common, which contains a `load_module_from_source()` function which supports both Python 2 and 3.

Call this new function in:
- sonic-ctrmgrd/tests/container_test.py
- sonic-ctrmgrd/tests/ctrmgr_tools_test.py
- sonic-host-services/tests/determine-reboot-cause_test.py
- sonic-host-services/tests/hostcfgd/hostcfgd_test.py
- sonic-host-services/tests/procdockerstatsd_test.py
- sonic-py-common/sonic_py_common/daemon_base.py
2021-04-08 08:29:28 -07:00
..
ctrmgr Copy dummy flannel.conf to get around absence of CNI Network (#6985) 2021-03-09 19:49:54 -08:00
tests [sonic-py-common] Add 'general' module with load_module_from_source() function (#7167) 2021-04-08 08:29:28 -07:00
.gitignore First cut image update for kubernetes support. (#5421) 2020-12-22 08:01:33 -08:00
pytest.ini First cut image update for kubernetes support. (#5421) 2020-12-22 08:01:33 -08:00
README.rst First cut image update for kubernetes support. (#5421) 2020-12-22 08:01:33 -08:00
setup.cfg First cut image update for kubernetes support. (#5421) 2020-12-22 08:01:33 -08:00
setup.py [sonic-py-common] Add 'general' module with load_module_from_source() function (#7167) 2021-04-08 08:29:28 -07:00

"
This Package contains modules required for remote container management.
"