Re: Looking for duplicate modules

2012-08-24 Thread Chris Angelico
On Fri, Aug 24, 2012 at 1:30 AM, Roy Smith wrote: > I'm working on a tool which scans all the directories in sys.path and finds > any modules which appear multiple times in the path. It'll also call out any > .pyc's it finds without matching py's. > This is why I love high level languages. The

Re: Looking for duplicate modules

2012-08-24 Thread rusi
On Aug 23, 8:30 pm, Roy Smith wrote: > We got burned yesterday by a scenario which has burned us before.  We had > multiple copies of a module in sys.path.  One (the one we wanted) was in our > deployed code tree, the other was in /usr/local/lib/python/ or some such.  It > was a particularly co

Looking for duplicate modules

2012-08-23 Thread Roy Smith
We got burned yesterday by a scenario which has burned us before. We had multiple copies of a module in sys.path. One (the one we wanted) was in our deployed code tree, the other was in /usr/local/lib/python/ or some such. It was a particularly confusing situation because we *knew* we had uni