We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 97213dc + 4d2702d commit c72c085Copy full SHA for c72c085
src/fosslight_util/parsing_yaml.py
@@ -25,14 +25,10 @@ def parsing_yml(yaml_file, base_path):
25
path_of_yml = os.path.normpath(os.path.dirname(yaml_file))
26
base_normpath = os.path.normpath(base_path)
27
relative_path = ""
28
-
29
if path_of_yml != base_normpath:
30
relative_path = os.path.relpath(path_of_yml, base_normpath)
31
else:
32
- if base_normpath == ".":
33
- base_normpath = ""
34
- relative_path = base_normpath if base_path else base_path
35
+ relative_path = ""
36
doc = yaml.safe_load(codecs.open(yaml_file, "r", "utf-8"))
37
is_old_format = any(x in doc for x in OLD_YAML_ROOT_ELEMENT)
38
0 commit comments