Lines Matching refs:directory
52 def mkdir_p(directory): argument
56 if directory == "":
61 os.makedirs(directory)
63 if e.errno == errno.EEXIST and os.path.isdir(directory):
69 def command_output(cmd, directory): argument
77 cwd=directory,
82 raise RuntimeError('Failed to run %s in %s' % (cmd, directory))
86 def deduce_software_version(directory): argument
98 changes_file = os.path.join(directory, 'CHANGES.md')
117 def describe(directory): argument
129 return command_output(['git', 'describe'], directory).rstrip().decode()
133 ['git', 'rev-parse', 'HEAD'], directory).rstrip().decode()
146 directory = None
154 directory = sys.argv[1]
178 "directory": directory,
194 directory = args["directory"]
201 software_version = deduce_software_version(directory)
202 commit = describe(directory)