Fix run.py version control detection when used outide of OpenCV build

This commit is contained in:
Andrey Kamaev 2012-08-29 19:16:11 +04:00
parent ee2bebf5f7
commit 3d9018f019

View File

@ -339,6 +339,8 @@ class RunInfo(object):
self.tests = self.getAvailableTestApps()
def getVCVersion(self, root_path):
if not root_path:
return None
if os.path.isdir(os.path.join(root_path, ".svn")):
return self.getSvnVersion(root_path)
elif os.path.isdir(os.path.join(root_path, ".git")):