robotframework-libtoc 1.2.7__tar.gz → 1.2.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: robotframework-libtoc
3
- Version: 1.2.7
3
+ Version: 1.2.8
4
4
  Summary: Docs and TOC generator for Robot Framework resources and libs
5
5
  Home-page: https://github.com/amochin/robotframework-libtoc
6
6
  License: Apache-2.0
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "robotframework-libtoc"
3
- version = "1.2.7"
3
+ version = "1.2.8"
4
4
  description = "Docs and TOC generator for Robot Framework resources and libs"
5
5
  authors = ["Andre Mochinin"]
6
6
  license = "Apache-2.0"
@@ -99,7 +99,7 @@ def add_files_from_folder(folder, base_dir_path, root=True):
99
99
  for item in os.listdir(folder):
100
100
  item_path = os.path.abspath(os.path.join(folder, item))
101
101
  if item.endswith(".html"):
102
- name_without_ext = item.split('.')[0]
102
+ name_without_ext = os.path.splitext(item)[0]
103
103
  result_str += """<a class="link_not_selected" href="{}" target="targetFrame">{}</a>
104
104
  """.format(os.path.relpath(item_path, base_dir_path), name_without_ext)
105
105
  else:
@@ -248,4 +248,4 @@ def main():
248
248
  print("")
249
249
 
250
250
  if __name__ == "__main__":
251
- main()
251
+ main()