Import on case insensitive filesystem

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Mon May 16 03:50:11 EDT 2011


En Fri, 13 May 2011 15:43:23 -0300, Mitchell Hashimoto  
<mitchell.hashimoto at gmail.com> escribió:

> I'm developing an app which runs Python on a filesystem which is not case
> sensitive (Mac OS X), but is mounted as an NFS drive on a remote machine.
> This causes errors because of the import being case sensitive but  
> accessing
> an FS which is case insensitive. Short of copying the entire directory  
> tree
> over to another filesystem, is there anything I can do to flag Python to  
> act
> as though it were on a case sensitive FS?

Try creating an environment variable PYTHONCASEOK with any value.
See http://www.python.org/dev/peps/pep-0235/ for details.

-- 
Gabriel Genellina




More information about the Python-list mailing list