i-steps scripts?
Thanks!
--
leechau
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
Steven wrote:
leechau wrote:
I wrote module1 in package1, and want to use a method named 'method1' in
module1, the caller(test.py) is like this:
import package1
package1.module1.method1()
[...]
When i run test.py, the output is:
AttributeError: 'module' object has no attr
I wrote module1 in package1, and want to use a method named 'method1' in
module1, the caller(test.py) is like this:
import package1
package1.module1.method1()
module1.py is like this:
def method1():
print 'method1 run!'
The filesystem structure is:
test.py
package1
|__ __init__.py
|__ m