Hi am tryin to find if another variable, called EVENTHANDLEr exits in a file caled pixit.py. pixit.py looks like: EVENTHANDLER = {} print EVENTHANDLER The following is the script I am test trying, but it always print None. wWhat gives? Any suggestion? Or is ther another way? guiCb = CtfGui(None) pixitObj = None EventHandler = None def setPixit(value): global pixitObj global guiCb # setting value of guiCb global EventHandler pixitObj = value guiCb.pixitObj = value # copy value print "where are you?" try: EventHandler = guiCb.pixitObj.EventHandler print EventHandler except: pass exec("import pixit") exec("reload(pixit)") setPixit(pixit) if EventHandler != None: print "Hi" else: print EventHandler
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4