4 # Copyright 2008 Develer S.r.l. (http://www.develer.com/)
9 # Author: Lorenzo Berni <duplo@develer.com>
15 def isBertosDir(directory):
16 return os.path.exists(directory + "/VERSION")
18 def bertosVersion(directory):
19 return open(directory + "/VERSION").readline().strip()
21 def createBertosProject(directory):
22 if not os.path.isdir(directory):
24 open(directory + "/project.bertos", "w")
26 def findDefinitions(ftype, path):
30 for filename in element[2]:
31 if fnmatch.fnmatch(filename, "*." + ftype):
32 defintions[filename] = element[0]