[Pythonmac-SIG] os.getcwd() returns lower case current working directory

Sean DiZazzo half.italian at gmail.com
Thu Nov 4 15:58:09 CET 2010


When formatting a drive last week, I noticed that Mac allows you to format
as case-insensitive.  Just a guess.

On Mon, Nov 1, 2010 at 3:11 PM, Klaasmer <klaasmer at gmail.com> wrote:

> Hi there,
>
> when I call os.getcwd() on my Mac under OS X 10.6.4 from my home directory,
> the path is converted to lowercase. I get
>
> /users/myusername
>
> instead of
>
> /Users/myusername
>
> On another Mac I get the correct uppercase string. How can I configure
> this? Is there a (hidden) Python setting?
>
> Reason for asking: On OS X all user directories are in "/Users". This is
> always uppercase. When using Mercurial, it gets sometimes confused with this
> strange and incorrect normalization of my current directory.
>
> Best regards,
> Klaas.
>
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20101104/b2e8b5ce/attachment.html>


More information about the Pythonmac-SIG mailing list