[Python-de] Externe Datein einlesen
Karl Scalet
scalet at yebu.de
Die Jul 5 12:07:00 CEST 2005
> 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'
Einfacher wäre doch
sys.path.insert( 0, os.path.join( __file__, "classes" ) )
?
Gruß,
Karl.
> --
> Schönen Gruß - Regards
> Hartmut Goebel
>
> | Hartmut Goebel | IT-Security -- effizient |
> | h.goebel at goebel-consult.de | www.goebel-consult.de |
>
> _______________________________________________
> python-de maillist - python-de at python.net
> http://python.net/mailman/listinfo/python-de