Hey,
At my work place there is a script (kind of automation system) that loads and runs our application tests from an XML file.
In the middle of the process the script calls __import__(testModule)
which loads the module from its file.
The problem starts when I tried adding a feature by dynamically adding functions to the testModule
at runtime.
As expected, the __import__
gets the old version of the module which doesn't have the methods I just added at runtime.
Is it possible to make the __import__
calls import the newer version of the class (which includes the methods I added)?
Please note that I prefer keeping the automation system untouched (even when it would help solving the problem faster).
Thanks
Tal.