You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
338 B
12 lines
338 B
import os
|
|
import re
|
|
#Just call Version.Get("..")
|
|
def Get(inFolderPath):
|
|
lREPatternString="^v[0-9]*.[0-9]*.[0-9]*$"
|
|
lResultList = [f for f in os.listdir(inFolderPath) if re.match(lREPatternString,f)]
|
|
lResult=None
|
|
if len(lResultList) == 0:
|
|
lResult = None
|
|
else:
|
|
lResult = lResultList[0]
|
|
return lResult |