Return os.listdir from generator
Browse files- AeroPath.py +5 -1
AeroPath.py
CHANGED
@@ -128,4 +128,8 @@ class AeroPath(datasets.GeneratorBasedBuilder):
|
|
128 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
129 |
urls = _URLS[self.config.name]
|
130 |
data_dir = dl_manager.download_and_extract(urls)
|
131 |
-
|
|
|
|
|
|
|
|
|
|
128 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
129 |
urls = _URLS[self.config.name]
|
130 |
data_dir = dl_manager.download_and_extract(urls)
|
131 |
+
|
132 |
+
print("data_dir:", data_dir)
|
133 |
+
|
134 |
+
return [os.path.join(data_dir, x) for x in os.listdir(data_dir)]
|
135 |
+
|