I want to insert two different paths with the same name of python file. Is it possible to reload goal_func without reestarting the kernel?
step 1:
path = 'a*/goal.py'
ruta_carpeta = path[:-8]
sys.path.insert(1, ruta_carpeta)
from goal import goal_func
step 2:
path = 'b*/goal.py'
ruta_carpeta = path[:-8]
sys.path.insert(1, ruta_carpeta)
from goal import goal_func
goal_func has not been updated.
importlib.reload?