Update ecoset.py
Browse files
ecoset.py
CHANGED
|
@@ -117,6 +117,10 @@ class Ecoset(datasets.GeneratorBasedBuilder):
|
|
| 117 |
"""Helper function to give abspaths of os.listdir"""
|
| 118 |
return [os.path.join(path, p) for p in os.listdir(path)if os.path.isdir(os.path.join(path, p))]
|
| 119 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
def subprocess_call_print(command_list):
|
| 121 |
"""Execute a subprocess while printing the command line output"""
|
| 122 |
p = subprocess.Popen(command_list, stdout=subprocess.PIPE)
|
|
|
|
| 117 |
"""Helper function to give abspaths of os.listdir"""
|
| 118 |
return [os.path.join(path, p) for p in os.listdir(path)if os.path.isdir(os.path.join(path, p))]
|
| 119 |
|
| 120 |
+
def filelist(path):
|
| 121 |
+
"""Helper function to give abspaths of os.listdir"""
|
| 122 |
+
return [os.path.join(path, p) for p in os.listdir(path)if os.path.isfile(os.path.join(path, p))]
|
| 123 |
+
|
| 124 |
def subprocess_call_print(command_list):
|
| 125 |
"""Execute a subprocess while printing the command line output"""
|
| 126 |
p = subprocess.Popen(command_list, stdout=subprocess.PIPE)
|