Lines Matching refs:directory
42 def mkdir_p(directory): argument
46 if directory == "":
51 os.makedirs(directory)
53 if e.errno == errno.EEXIST and os.path.isdir(directory):
59 def command_output(cmd, directory): argument
67 cwd=directory,
72 raise RuntimeError('Failed to run %s in %s' % (cmd, directory))
76 def deduce_software_version(directory): argument
88 changes_file = os.path.join(directory, 'CHANGES')
97 def describe(directory): argument
109 return command_output(['git', 'describe'], directory).rstrip().decode()
113 ['git', 'rev-parse', 'HEAD'], directory).rstrip().decode()