Reorganize files
This commit is contained in:
parent
e9209ffede
commit
8d2df2db0b
7 changed files with 4 additions and 4 deletions
0
data/__init__.py
Normal file
0
data/__init__.py
Normal file
0
import/__init__.py
Normal file
0
import/__init__.py
Normal file
|
@ -24,6 +24,6 @@ with open("correspondance-code-insee-code-postal.json", "r") as f:
|
||||||
failed.append(base_item)
|
failed.append(base_item)
|
||||||
import pprint
|
import pprint
|
||||||
|
|
||||||
with open("cities.py", "w") as writef:
|
with open("../data/cities.py", "w") as writef:
|
||||||
writef.write(pprint.pformat(mapping, indent=4, compact=True))
|
writef.write(pprint.pformat(mapping, indent=4, compact=True))
|
||||||
writef.flush()
|
writef.flush()
|
6
main.py
6
main.py
|
@ -2,9 +2,9 @@ import calendar
|
||||||
import datetime
|
import datetime
|
||||||
import pprint
|
import pprint
|
||||||
|
|
||||||
from departments import DEPARTMENTS
|
from data.departments import DEPARTMENTS
|
||||||
from cities import CITIES
|
from data.cities import CITIES
|
||||||
from countries import COUNTRIES, CONTINENTS
|
from data.countries import COUNTRIES, CONTINENTS
|
||||||
|
|
||||||
|
|
||||||
class InseeData:
|
class InseeData:
|
||||||
|
|
Loading…
Reference in a new issue