Lines Matching refs:directory
44 def mkdir_p(directory): argument
48 if directory == "":
53 os.makedirs(directory)
55 if e.errno == errno.EEXIST and os.path.isdir(directory):
61 def command_output(cmd, directory): argument
69 cwd=directory,
74 raise RuntimeError('Failed to run %s in %s' % (cmd, directory))
78 def deduce_software_version(directory): argument
90 changes_file = os.path.join(directory, 'CHANGES')
99 def describe(directory): argument
111 return command_output(['git', 'describe'], directory).rstrip().decode()
115 ['git', 'rev-parse', 'HEAD'], directory).rstrip().decode()