OSDN Git Service
(root)
/
nvdajp
/
nvdajp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6192e52
)
Fix broken circular import.
author
James Teh
<jamie@jantrid.net>
Wed, 6 Oct 2010 23:20:47 +0000
(09:20 +1000)
committer
James Teh
<jamie@jantrid.net>
Wed, 6 Oct 2010 23:20:47 +0000
(09:20 +1000)
source/baseObject.py
patch
|
blob
|
history
diff --git
a/source/baseObject.py
b/source/baseObject.py
index
8ac08e9
..
6386efe
100755
(executable)
--- a/
source/baseObject.py
+++ b/
source/baseObject.py
@@
-8,7
+8,6
@@
"""
\r
\r
import weakref
\r
-import inputCore
\r
from logHandler import log
\r
\r
class Getter(object):
\r
@@
-148,6
+147,8
@@
class ScriptableObject(AutoPropertyObject):
func = getattr(self, "script_%s" % scriptName, None)
\r
if not func:
\r
raise LookupError("No such script: %s" % func)
\r
+ # Import late to avoid circular import.
\r
+ import inputCore
\r
self._gestureMap[inputCore.normalizeGestureIdentifier(gestureIdentifier)] = func
\r
\r
def bindGestures(self, gestureMap):
\r