How do I import a variable from another module?

noagbodjivictor at gmail.com noagbodjivictor at gmail.com
Thu May 3 21:27:12 EDT 2007


I have a variable names actions in a module named qt_actions.py

Well this is what I get:
>>> import qt_actions
>>> qt_actions.actions
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'actions'




More information about the Python-list mailing list