Skip to content

Commit

Permalink
Merge pull request #737 from chinapandaman/PPF-736
Browse files Browse the repository at this point in the history
PPF-736: update pdf diff script to use unique file name
  • Loading branch information
chinapandaman authored Sep 25, 2024
2 parents da02f37 + 03f041f commit 606c789
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/create_pdf_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
path = sys.argv[1]

with open(os.path.abspath(path), "rb+") as f:
file_name = os.path.basename(os.path.abspath(path))
file_name = "_".join(path.split("/"))

with open(
os.path.join(os.path.dirname(__file__), "..", "temp", file_name), "wb+"
Expand Down
2 changes: 1 addition & 1 deletion scripts/open_pdf_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

if __name__ == "__main__":
before_path = sys.argv[1]
file_name = os.path.basename(os.path.abspath(before_path))
file_name = "_".join(before_path.split("/"))
after_path = os.path.join(os.path.dirname(__file__), "..", "temp", file_name)

if os.environ.get("CODESPACES") == "true":
Expand Down

0 comments on commit 606c789

Please sign in to comment.