Commit 046cb560 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

Find duplicity in curpath

parent 2bf9d618
from os import listdir, makedirs from os import listdir, makedirs
from os.path import exists, isdir from os.path import exists, isdir
import os
from subprocess import Popen, PIPE from subprocess import Popen, PIPE
import json import json
import errno import errno
...@@ -64,7 +65,9 @@ def put_timepoint(config, timepoint, data): ...@@ -64,7 +65,9 @@ def put_timepoint(config, timepoint, data):
def fetch_timepoint(config, timepoint): def fetch_timepoint(config, timepoint):
args = ['duplicity', 'list-current-files', '-t', timepoint, curpath = os.path.dirname(os.path.realpath(__file__))
duplicity = os.path.join(curpath, 'duplicity')
args = [duplicity, 'list-current-files', '-t', timepoint,
config['target_url']] config['target_url']]
proc = Popen(args, stdout=PIPE, stderr=PIPE) proc = Popen(args, stdout=PIPE, stderr=PIPE)
procout, procerr = proc.communicate() procout, procerr = proc.communicate()
......
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