mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
Fix run.py version control detection when used outide of OpenCV build
This commit is contained in:
parent
ee2bebf5f7
commit
3d9018f019
@ -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")):
|
||||
|
Loading…
Reference in New Issue
Block a user