def isBertosDir(directory):
return os.path.exists(directory + "/VERSION")
def isBertosDir(directory):
return os.path.exists(directory + "/VERSION")
if not os.path.isdir(directory):
os.mkdir(directory)
open(directory + "/project.bertos", "w")
if not os.path.isdir(directory):
os.mkdir(directory)
open(directory + "/project.bertos", "w")
-
\ No newline at end of file
+
+def findDefinitions(ftype, path):
+ l = os.walk(path)
+ definitions = {}
+ for element in l:
+ for filename in element[2]:
+ if fnmatch.fnmatch(filename, "*." + ftype):
+ defintions[filename] = element[0]
+ return definitions
\ No newline at end of file