Windows: small fixes for rclmpdf.py to work with alivate poppler

This commit is contained in:
Jean-Francois Dockes
2015-10-01 16:36:29 +02:00
parent 376e5485dc
commit a411d4c964
4 changed files with 35 additions and 9 deletions
+7
View File
@@ -24,6 +24,9 @@ import os
import tempfile
import shutil
import getopt
import rclconfig
my_config = rclconfig.RclConfig()
############################################
# RclExecM implements the
@@ -207,6 +210,10 @@ def which(program):
def path_candidates():
yield os.path.dirname(sys.argv[0])
rclpath = my_config.getConfParam("recollhelperpath")
if rclpath:
for path in rclpath.split(os.pathsep):
yield path
for path in os.environ["PATH"].split(os.pathsep):
yield path