mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 15:09:54 -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
|
filecount += 1
|
||||||
slashsplit = str(filepath).split("/")
|
slashsplit = str(filepath).split("/")
|
||||||
filename = slashsplit[-1]
|
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:
|
else:
|
||||||
fileopenfail += 1
|
fileopenfail += 1
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user