On Sat, Dec 02, 2006 at 10:28:09AM +0100, Manlio Perillo wrote:
>Marco Giusti ha scritto:
>>On Fri, Dec 01, 2006 at 10:01:58PM +0100, Manlio Perillo wrote:
>>>Ho notato che su Debian quando si esegue uno script la directory 
>>>corrente non viene messa nel sys.path.
>>>
>>>Come mai?
>>
>>sei sicuro?
>>
>>#!/usr/bin/env python
>>
>>import sys
>>print sys.path
>>
>>
>>['/home/nohero/tmp',
>
>Attenzione che nel path viene inserito il path in cui si trova lo script 
>che viene eseguito.
>
>Prova ad eseguire quello script da un altra directory, ad esempio:
>$nohero: tmp/test.py
>
>
>Su Windows viene inserito nel path sia /home/hohero che /home/nohero/tmp

eseguito dalla mia home e dentro tmp da' esattamente lo stesso
risultato, sia che usi python2.4 (pacchetto debian) che python2.5 (da me
compilato)

ciao
marco

-- 
reply to `python -c "print '[EMAIL PROTECTED]'[::-1]"`

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a