Skip to content

Commit

Permalink
F set default program files
Browse files Browse the repository at this point in the history
Co-Authored-By: Tim Preece <tdpreece@gmail.com>
  • Loading branch information
isidore and tdpreece committed Sep 19, 2021
1 parent 19a087d commit cc2cd93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions approvaltests/reporters/generic_diff_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ def expand_program_files(path: str) -> str:
return path

for candidate in [
r"C:\Program Files",
r"C:\Program Files (x86)",
r"C:\ProgramW6432",
r"C:/Program Files",
r"C:/Program Files (x86)",
r"C:/ProgramW6432",
]:
possible = path.replace(PROGRAM_FILES, candidate)
if Command.executable(possible):
return possible
return path
return path.replace(PROGRAM_FILES, "C:/Program Files")
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "ReportWithWinMerge",
"path": "C:\\Program Files/WinMerge/WinMergeU.exe"
"path": "C:/Program Files/WinMerge/WinMergeU.exe"
}

0 comments on commit cc2cd93

Please sign in to comment.