You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
1.1 KiB

--- pdfCropMargins/external_program_calls.py.orig 2019-06-08 11:21:06.000000000 +0200
+++ pdfCropMargins/external_program_calls.py 2019-06-08 11:27:55.532678000 +0200
@@ -68,6 +68,7 @@
# system_os string followed by the 32 and 64 bit executable pathnames. Will
# use the PATH for the system.
gs_executables = (
+ ("FreeBSD", "gs", "gs"),
("Linux", "gs", "gs"),
("Cygwin", "gs", "gs"),
("Darwin", "gs", "gs"),
@@ -76,6 +77,7 @@
gs_executable = None # Will be set to the executable selected for the platform.
pdftoppm_executables = (
+ ("FreeBSD", "pdftoppm", "pdftoppm"),
("Linux", "pdftoppm", "pdftoppm"),
("Cygwin", "pdftoppm", "pdftoppm"),
("Darwin", "pdftoppm", "pdftoppm"),
@@ -134,7 +136,7 @@
def samefile(path1, path2):
"""Test if paths refer to the same file or directory."""
- if system_os == "Linux" or system_os == "Cygwin":
+ if system_os == "Linux" or system_os == "FreeBSD" or system_os == "Cygwin":
return os.path.samefile(path1, path2)
return (get_canonical_absolute_expanded_path(path1) ==
get_canonical_absolute_expanded_path(path2))