How can I reload a relative Import?
I have an import library which just has a bunch of common tasks and functions. I could import the whole module, but would prefer to just import the functions that are needed for that particular script. here is some code where I do the import itself:
import sys
importPath = r"C:\Users\
if not importPath in sys.path: sys.path.
from masterImport import openTicket , resolveTicket , reset
SO that works fine, no problems.
THe problem comes when, using the Sikuli IDE, I need to reload the import to test a new function i added.
There are currently two workarounds to that problem:
1) restart the IDE
2) use a reload(module)
using a relative import, i can't use reload(module), as it errors "NameError: name 'masterImport' is not defined"
Is there a way to reload a relative import?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: