mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-11 14:10:58 -05:00
basename
This commit is contained in:
parent
a441e2e928
commit
cc29d6d4c4
@ -356,7 +356,8 @@ def read_directory_json_to_dict(directories, configtypename="Config File", log_f
|
||||
filecount += 1
|
||||
slashsplit = str(filepath).split("/")
|
||||
filename = slashsplit[-1]
|
||||
configs_dict[filename] = dict_from_file
|
||||
filename_base = os.path.basename(filename).rsplit('.', 1)[0]
|
||||
configs_dict[filename_base] = dict_from_file
|
||||
else:
|
||||
fileopenfail += 1
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user