rycolab / aclpub2

MIT License
26 stars 38 forks source link

generate.py fails without --overwrite #178

Open habernal opened 2 days ago

habernal commented 2 days ago

Repro:

$ ./bin/generate examples/sigdial --proceedings
[...]
Traceback (most recent call last):
  File "/home/habi/PycharmProjects/aclpub2/./bin/generate", line 50, in <module>
    generate_proceedings(args.path, args.overwrite, args.outdir, args.nopax, args.frontmatter)
  File "/home/habi/PycharmProjects/aclpub2/aclpub2/generate.py", line 27, in generate_proceedings
    raise Exception(
Exception: Build directory build is not empty, and the overwrite flag is false.

even if the built dir did not exist.

$ python --version
Python 3.12.3