update labels script for build folders

This commit is contained in:
Maximilian Keßler 2022-04-26 09:02:36 +02:00
parent fa6bec2835
commit 6d7e96f43b

View file

@ -46,7 +46,7 @@ def main(args):
arglist = [] arglist = []
if len(args) > 1: if len(args) > 1:
path = Path(args[1]) path = Path(args[1])
arglist = list(path.glob('*.aux')) arglist = list(path.glob('*.aux')) + list(path.glob('build/*.aux'))
else: else:
arglist = ['/home/maximilian/current_course/full.aux'] arglist = ['/home/maximilian/current_course/full.aux']
@ -63,6 +63,7 @@ def main(args):
return command.strip() return command.strip()
if __name__ == '__main__': if __name__ == '__main__':
selected_label = main(sys.argv) selected_label = main(sys.argv)
print(selected_label) print(selected_label)