|
|
@ -152,6 +152,11 @@ class DataFile:
|
|
|
|
content_path = os.path.abspath(os.path.join(file_path, "default.yml") if translation else file_path)
|
|
|
|
content_path = os.path.abspath(os.path.join(file_path, "default.yml") if translation else file_path)
|
|
|
|
dir_path = file_path
|
|
|
|
dir_path = file_path
|
|
|
|
if not os.path.exists(content_path):
|
|
|
|
if not os.path.exists(content_path):
|
|
|
|
|
|
|
|
if content_path.endswith(".yml") and os.path.exists(content_path[:-4] + ".yaml"):
|
|
|
|
|
|
|
|
content_path = content_path[:-4] + ".yaml"
|
|
|
|
|
|
|
|
elif content_path.endswith(".yaml") and os.path.exists(content_path[:-5] + ".yml"):
|
|
|
|
|
|
|
|
content_path = content_path[:-5] + ".yml"
|
|
|
|
|
|
|
|
else:
|
|
|
|
if file_type == "Default":
|
|
|
|
if file_type == "Default":
|
|
|
|
raise Failed(f"File Error: Default does not exist {file_path}")
|
|
|
|
raise Failed(f"File Error: Default does not exist {file_path}")
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|