On Thu, Oct 08, 2009 at 06:34:35PM +0200, Aldes Rossi wrote: > Non riesco a capire dove python cerchi i file da eseguire.
Stai confondendo i path per "i file da eseguire" ed i path dei moduli. Il sys.path ti dice le cartelle dove python cerca i moduli quando usi 'impoort', a seguito di:: import pdb python cerca il modulo nel sys.path. Quello a cui tu invece stai pensandro è un meccanismo simile al $PATH di un sistema unix che invece non mi pare presente in python. Nota che neanche PYTHONPATH fa quello che cerchi, PYTHONPATH aggiunge solo dei path (sempre per import) al sys.path. sandro *:-) -- Sandro Dentella *:-) http://sqlkit.argolinux.org SQLkit home page - PyGTK/python/sqlalchemy _______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python