I have a python program running in the background that has a multitude of packages/modules. It has also a specific module I have added to the python installation folder called qwerty.pyc
.
I am importing this said module using the _import_
method and my script looks something like this:
import json
qwerty = __import__("qwerty")
c = qwerty.qwerty()
c.data()
Now, whenever I remove qwerty.py
from the python installation folder (in libs folder) the python script that's running in the background still runs without any issues instead of throwing an error that it can't find the module.
I believed using _import_
will dynamically load the module at runtime. Is there a way to truly load this module during runtime without caching?