Commit 78da7901 authored by Patrik Dufresne's avatar Patrik Dufresne

Merge branch 'develop/patrik/fix-path' into 'master'

Use full path to call rdiff-backup executable #68

See merge request pdsl/rdiffweb!46
parents 237196b7 139af610
Pipeline #1715 passed with stages
in 60 minutes and 5 seconds
......@@ -20,9 +20,14 @@ from __future__ import absolute_import
from __future__ import unicode_literals
import bisect
from builtins import bytes
from builtins import map
from builtins import object
from builtins import str
import calendar
from collections import OrderedDict
from datetime import timedelta
from distutils import spawn
import encodings
import gzip
import io
......@@ -38,10 +43,6 @@ import time
import weakref
import zlib
from builtins import bytes
from builtins import map
from builtins import object
from builtins import str
from future.utils import iteritems
from future.utils import python_2_unicode_compatible
from future.utils.surrogateescape import encodefilename
......@@ -53,6 +54,7 @@ from rdiffweb.core import rdw_helpers
from rdiffweb.core.archiver import archive, ARCHIVERS
from rdiffweb.core.i18n import ugettext as _
try:
import subprocess32 as subprocess # @UnresolvedImport @UnusedImport
except:
......@@ -816,7 +818,7 @@ class RdiffRepo(object):
if os.environ.get('TMPDIR'):
env['TMPDIR'] = os.environ['TMPDIR']
parms = [b'rdiff-backup']
parms = [spawn.find_executable('rdiff-backup')]
parms.extend(args)
execution = subprocess.Popen(
parms, stdout=subprocess.PIPE,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment