On Wed, Jan 23, 2013 at 12:07 PM, Mark Mikofski <[email protected]>wrote:
> I fixed it for myself - not sure if it will work for others, but I've > opened spyder 10 times in a row, as fast I could, even two instances, both > using start-menu shortcut, `spyder.bat` cmd file and bash sh `spyder` > command, and it opens fast with no issues every time! Yay! > > My solution is here: > > --- userconfig - Copy.py Sat Jan 5 06:31:28 2013 > +++ userconfig.py Wed Jan 23 10:53:16 2013 > @@ -160,13 +160,15 @@ > """ > fname = self.filename() > > + # import pdb;pdb.set_trace() > # See comment #5 on Issue 1086 > - if osp.isfile(fname): > - os.remove(fname) > + # if osp.isfile(fname): > + # os.remove(fname) > > - conf_file = file(fname, 'w') > - self.write(conf_file) > - conf_file.close() > + #conf_file = file(fname, 'w') > + with open(fname, 'w') as conf_file: > + self.write(conf_file) > + #conf_file.close() > > def filename(self): > """ > > Note that I commented out the patch from commit b6bc3a102be2, and I didn't > need (not sure if it's needed) the patch from commit 1fc0b9c4a621. > > Thanks, > Mark > > Excellent! Nice find. I have applied your patch to the default repository. Ironically, a similar change had already been made to the v21 repository, but it was well after the 2.1.13 release. Thanks, again, for the debugging work. Jed -- You received this message because you are subscribed to the Google Groups "spyder" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/spyderlib?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
