[python-nl] classes importeren uit subfolders

UnrealEd edunreal at gmail.com
Tue Mar 7 19:51:13 CET 2006


bedankt, maar het werkt nog steeds niet:

ik gebruikte de module sys om de PYTHONPATH te wijzigen, zoals in de
python-handleiding staat, maar het werkt nog steeds niet.
dit was de code die ik gebruikte:
   import sys
   sys.path.append("foo/bar/")
Kan het ook zijn dat python zelf die lijst aanvult als je een script runt in
een bepaalde directory? want de paths die ik wilde toevoegen stonden er al
in?

mvg,
UnrealEd
--
View this message in context: http://www.nabble.com/classes-importeren-uit-subfolders-t1230193.html#a3286846
Sent from the Python - python-nl forum at Nabble.com.



More information about the Python-nl mailing list