
5 Jul
2005
5 Jul
'05
11:38 a.m.
sowieso! aber das war ja nicht das Problem, nachdem gefragt wurde.
Mir scheint im Fall der Fälle die Lösung relativ zum aktuellen Modul am sinnvollsten.
import os, sys sys.path.insert( 0, os.path.abspath( os.path.join( os.path.dirname( __file__ ), "classes" ) ) )
HTH, Gerald
Hartmut Goebel schrieb:
Gerald Klix schrieb:
für paranoiker gibts noch: sys.path.insert( 0, os.path.join( os.getcwd, "classes" ) )
Scheidert, wenn das CWD sonstwo ist. Tipp: Modul 'inspect'
--
GPG-Key: http://keyserver.veridis.com:11371/search?q=0xA140D634
_______________________________________________
python-de maillist - python-de@python.net
http://python.net/mailman/listinfo/python-de