Skip to content

Commit

Permalink
Revert "fix: Path bug (#2)"
Browse files Browse the repository at this point in the history
This reverts commit 5d5b385.
  • Loading branch information
lkstrp committed Aug 13, 2024
1 parent 798e263 commit c0bfab8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions draft_comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def files_table(self) -> str:
for root, _, files in os.walk(self.dir_main):
for file in files:
if file.endswith(".csv"):
path_in_main = Path(root) / file
path_in_main = root / file
relative_path = os.path.relpath(path_in_main, self.dir_main)
index_str = "../" + "/".join(str(relative_path).split("/")[1:])
path_in_feature = self.dir_feature / relative_path
Expand Down Expand Up @@ -306,7 +306,7 @@ def files_table(self) -> str:
for root, _, files in os.walk(self.dir_feature):
for file in files:
if file.endswith(".csv"):
path_in_feature = Path(root) / file
path_in_feature = root / file
relative_path = os.path.relpath(path_in_feature, self.dir_feature)
index_str = "../" + "/".join(str(relative_path).split("/")[1:])

Expand Down

0 comments on commit c0bfab8

Please sign in to comment.