Jose
On 7/28/06, Philip Jenvey <[EMAIL PROTECTED]> wrote:
On Jul 28, 2006, at 5:09 PM, Jose Galvez wrote:
> hmm good point. I wrote it on my windoze box which is case
> insensitive and so I had to add the .lower()'s. When I looked at
> the easy-install.pth file all the eggs were in lowercase, which is
> why I added that. On Linux I take it the pth file uses the correct
> mixed case? I think I'll change the script to take the OS into
> account and only use lower() on windows and leave it off for
> everyone else. I'm setting up a ubuntu box this weekend so I'll do
> some more testing before I put the script up on activestate as was
> suggested.
>
Aren't Windows filesystems case insensitive (no need to lower())? I
can't recall if NTFS is. I doubt setuptools is doing lower() in the
case of windows.
I suggest not catching all exceptions during the egg removal -- I
believe the only ones thrown from os.remove and rmtree are OSError.
You definitely don't want to catch KeyboardInterruption, in case you
just realized you want to abort. I'd also print out the caught OSError.
--
Philip Jenvey
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/pylons-discuss
-~----------~----~----~----~------~----~------~--~---
