"atomic bomb" commit. Reorganized OpenCV directory structure

This commit is contained in:
Vadim Pisarevsky
2010-05-11 17:44:00 +00:00
commit 127d6649a1
1761 changed files with 1766340 additions and 0 deletions

18
doc/latex2sphinx/qfile.py Normal file
View File

@@ -0,0 +1,18 @@
import StringIO
import os
class QOpen(StringIO.StringIO):
def __init__(self, *args):
self.__args = args
StringIO.StringIO.__init__(self)
def close(self):
import StringIO, os
fname = self.__args[0]
if not os.access(fname, os.R_OK) or self.getvalue() != open(fname).read():
open(*self.__args).write(self.getvalue())
StringIO.StringIO.close(self)
def __del__(self):
if not self.closed:
self.close()