stel ik heb er myclass1.py, myclass2.py, myclass3.py erin staan
en als ik die nu in een ander script allemaal wens aan te roepen, kan ik dat dan doen op deze mannier:
import classes
waarbij er in de map classes in het bestand __init__.py dit staat:
import myclass1
import myclass2
import myclass3
zal dat werken?
mvg,
UnrealEd
View this message in context: Re: classes importeren uit subfolders
Sent from the Python - python-nl forum at Nabble.com.
_______________________________________________ Python-nl mailing list Python-nl@python.org http://mail.python.org/mailman/listinfo/python-nl