On 3/6/06, UnrealEd <[EMAIL PROTECTED]> wrote:
>
> gegroet allen,
>
> weer een klein vraagje: hoe kan je bestanden importeren die in een subfolder
> staan?
> vb: ik heb een root folder met een bestand test.py en ik wil de file
> myclass.py importeren die in de folder: root/classes is gelocaliseerd.
>
> mvg,
> UnrealEd
> --
> View this message in context: 
> http://www.nabble.com/classes-importeren-uit-subfolders-t1230193.html#a3253778
> 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
>

Zorg dat in de folder classes een __init__.py bestand is (mag leeg
zijn). Vervolgens doe je:

> import classes.myclass

Stani

--
http://pythonide.stani.be
http://pythonide.stani.be/screenshots
http://pythonide.stani.be/manual/html/manual.html
_______________________________________________
Python-nl mailing list
Python-nl@python.org
http://mail.python.org/mailman/listinfo/python-nl

Antwoord per e-mail aan