Re: [Distutils] zc.buildout: bootstrap.py script

2010-04-06 Thread Jim Fulton
On Fri, Apr 2, 2010 at 9:40 AM, Marius Gedminas wrote: > On Wed, Mar 31, 2010 at 12:50:33AM +0200, Tarek Ziadé wrote: >> On Wed, Mar 31, 2010 at 12:08 AM, René Fleschenberg >> wrote: >> > Hi, >> > >> > The code in bootstrap.py doesn't use the if __name__ == "__main__" idiom. >> > This can lead to

Re: [Distutils] zc.buildout: bootstrap.py script

2010-04-02 Thread Marius Gedminas
On Wed, Mar 31, 2010 at 12:50:33AM +0200, Tarek Ziadé wrote: > On Wed, Mar 31, 2010 at 12:08 AM, René Fleschenberg > wrote: > > Hi, > > > > The code in bootstrap.py doesn't use the if __name__ == "__main__" idiom. > > This can lead to funny behaviour if it is imported for some reason (I > > stumbl

[Distutils] zc.buildout: bootstrap.py script

2010-03-31 Thread René Fleschenberg
Hi, The code in bootstrap.py doesn't use the if __name__ == "__main__" idiom. This can lead to funny behaviour if it is imported for some reason (I stumbled upon this in conjunction with nose). Is there a reason for not checking for __name__ == "__main__", or should this be changed? -- René

Re: [Distutils] zc.buildout: bootstrap.py script

2010-03-30 Thread Tarek Ziadé
On Wed, Mar 31, 2010 at 12:08 AM, René Fleschenberg wrote: > Hi, > > The code in bootstrap.py doesn't use the if __name__ == "__main__" idiom. > This can lead to funny behaviour if it is imported for some reason (I > stumbled upon this in conjunction with nose). > > Is there a reason for not check

[Distutils] zc.buildout: bootstrap.py script

2010-03-30 Thread René Fleschenberg
Hi, The code in bootstrap.py doesn't use the if __name__ == "__main__" idiom. This can lead to funny behaviour if it is imported for some reason (I stumbled upon this in conjunction with nose). Is there a reason for not checking for __name__ == "__main__", or should this be changed? -- René