So I have two files: File 1 has this method in it:
import MyGlobals
global old_function
def init():
import ModuleB
global old_function
MyGlobals.SomeNumber = 0
old_function = ModuleB.someClass.function
ModuleB.someClass.function = someNewFunction
File 2 has a class "someClass" and a class "someOtherClass". That being said. When I run my code on my computer it works great and it does what I expect it to. When I run this code on my friends computer which is the same build of windows 7 with the same python version 2.5.4, and with the same code(on a thumb drive for both) it gets an error "Module does not contain someClass"
I hope this makes sense in what I am trying to say. It is work related therefore code snippets aren't aloud. This one has me extremely stumped on why this would be the case. I even tried "from ModuleB import someClass" to see if someClass would work, but it still said that someClass is not in moduleB, while someCLass is definitely in moduleB...
Any ideas would greatly be appreciated!