Skip to content

Commit

Permalink
qgis_detect_windows_paths(): fix non-fatal bug in OSGeo4W paths *
Browse files Browse the repository at this point in the history
The paths contained a double slash after the drive letter, e.g. visible in:
#159 (comment)
#89 (comment).
  • Loading branch information
florisvdh committed Dec 15, 2023
1 parent 42055da commit b7faf2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/qgis-detect.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ qgis_detect_windows_paths <- function(drive_letter = strsplit(R.home(), ":")[[1]
posssible_locs_win_df <- expand.grid(
qgis = c(
list.files(glue("{ drive_letter }:/Program Files"), "QGIS*", full.names = TRUE),
file.path(glue("{ drive_letter }:/"), "OSGeo4W64"),
file.path(glue("{ drive_letter }:/"), "OSGeo4W")
file.path(glue("{ drive_letter }:"), "OSGeo4W64"),
file.path(glue("{ drive_letter }:"), "OSGeo4W")
),
file = file.path("bin", bat_files)
)
Expand Down

0 comments on commit b7faf2f

Please sign in to comment.