Update get_configs.py
Browse files- get_configs.py +3 -4
get_configs.py
CHANGED
|
@@ -5,8 +5,7 @@ all_articles = glob.glob('./articles/*.json')
|
|
| 5 |
file_names = [os.path.splitext(os.path.basename(path))[0] for path in all_articles]
|
| 6 |
_TIMES = sorted(file_names) + ['all']
|
| 7 |
|
| 8 |
-
times_string = "_TIMES = " + repr(_TIMES)
|
| 9 |
-
|
| 10 |
# Write the string to a Python file
|
| 11 |
-
with open('configs.
|
| 12 |
-
|
|
|
|
|
|
| 5 |
file_names = [os.path.splitext(os.path.basename(path))[0] for path in all_articles]
|
| 6 |
_TIMES = sorted(file_names) + ['all']
|
| 7 |
|
|
|
|
|
|
|
| 8 |
# Write the string to a Python file
|
| 9 |
+
with open('configs.txt', 'w') as file:
|
| 10 |
+
for time in _TIMES:
|
| 11 |
+
file.write(time + '\n')
|