from subprocess import check_call
from time import strftime, strptime
import os
+import os.path
import sys
import tempfile
+sys.path[:0] = [os.path.dirname(os.path.realpath(__file__)) + '/..']
+
from bup import compat, git, helpers, options
from bup.compat import argv_bytes, str_type
from bup.helpers import (handle_ctrl_c,
"""
def logcmd(cmd):
- log(shstr(cmd).decode('iso-8859-1', errors='replace') + '\n')
+ log(shstr(cmd).decode(errors='backslashreplace') + '\n')
def exc(cmd, shell=False):
global opt