afimb / gtfslib-python

An open source library in python for reading GTFS files and computing various stats and indicators about Public Transport networks
GNU General Public License v3.0
44 stars 6 forks source link

Remove optional empty files from GTFS export #53

Closed laurentg closed 7 years ago

laurentg commented 7 years ago

transfers.txt, fare_rules.txt and fare_attributes.txt.

Josef-A commented 7 years ago

I got an error from this. The new code is within the with PrettyCsv( ... clausal. Therefore the file is still in use when its try to remove it.

I just changed the indentation. Then it worked.

shapes.txt is also optional

laurentg commented 7 years ago

Ha OK that should depend on the python version / OS, I did not had the issue here (python 3.4.2 on Debian Linux). Correcting.