Skip to content

Commit a50edda

Browse files
committed
Add sources output subdirectory
1 parent 18d697e commit a50edda

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tokenomics_decentralization/helper.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,10 @@ def get_output_directory():
147147
:returns: a list of directories that might contain the db files
148148
"""
149149
config = get_config_data()
150-
return [pathlib.Path(db_dir).resolve() for db_dir in config['output_directories']][0]
150+
sources = ' - '.join(get_active_source_keywords())
151+
if not sources:
152+
sources = 'No clustering'
153+
return [pathlib.Path(db_dir).resolve() for db_dir in config['output_directories']][0] / sources
151154

152155

153156
def get_input_directories():

0 commit comments

Comments
 (0)