Skip to content

Commit 2cedaed

Browse files
author
anikaweinmann
committed
fix local data dir
1 parent 6a9a07a commit 2cedaed

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

v.alkis.buildings.import.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
BB_districts,
121121
download_dict,
122122
)
123-
from fs import FS_ABBREVIATION
123+
from federal_state_info import FS_ABBREVIATION
124124

125125
orig_region = None
126126
OUTPUT_ALKIS_TEMP = None
@@ -606,7 +606,9 @@ def main():
606606
federal_states = options["federal_state"].strip()
607607

608608
# get list of local input folders for federal states
609-
local_fs_list = os.listdir(local_data_dir)
609+
local_fs_list = []
610+
if local_data_dir and local_data_dir != "":
611+
local_fs_list = os.listdir(local_data_dir)
610612

611613
# region
612614
orig_region = f"ORIG_REGION{PID}"

0 commit comments

Comments
 (0)