So I'm making a modular program for a security system in python, but I can't access modules I've imported in main.py from other scripts.
That is, say I have main.py that imports the random module. I use import camClass to import a script containing an object class from camClass.py in the same directory. When I try to use the random module from within the class in camClass.py, it is undefined.
How do I overcome this error?
If I have to reimport the module from within camClass.py, where do I do it? In the init function? Or just at the top of the script? Thanks