warg.packages.reloading

Created on 28/06/2020

Functions

is_module_available(module)

Returns True if module is available.

import_warning(module_name)

Inform the user that a module has been imported, useful when repeated imports are heavy in the contexts of multiprocessing.

reimported_warning(module_name)

Just an idea

ensure_in_sys_path(path[, position, ...])

Ensures that a path is in sys.path, but avoids duplicates.

clean_sys_path()

Clean the sys.path for dead paths or duplicates

remove_from_sys_path(target[, missing_ok])

Clean the sys.path for target path

import_file(path[, from_list])

Import a module given its filename, works both on absolute and relative paths

find_ancestral_relatives(target[, context, ...])

find_nearest_ancestral_relative(*args[, ...])

walk_up(path, top[, max_ascent])

reload_all_modules([catch_exceptions, verbose])

reload_module(module_name[, containment_test])