bundestag / gesetze-tools

Scripts to maintain German law git repository
GNU Lesser General Public License v3.0
114 stars 21 forks source link

🐛 [Bug] lawdown.py: recursive dir creation broken #53

Closed k127 closed 1 year ago

k127 commented 1 year ago

Describe the bug

laws-md/b/bgb
Traceback (most recent call last):
  File "./lawdown.py", line 432, in <module>
    main(arguments)
  File "./lawdown.py", line 418, in main
    outpath.mkdir()
  File "/usr/local/Cellar/python@3.9/3.9.16/Frameworks/Python.framework/Versions/3.9/lib/python3.9/pathlib.py", line 1323, in mkdir
    self._accessor.mkdir(self, mode)
FileNotFoundError: [Errno 2] No such file or directory: 'laws-md/b/bgb'

To Reproduce Steps to reproduce the behavior:

  1. virtualenv -p python3 ./venv/ && source venv/bin/activate && pip install -r requirements.txt
  2. ./lawdown.py convert laws laws-md

Expected behavior Directories ./laws-md/b/bgb recursively being created.

Additional context

#$ python -V
Python 3.9.16