From b8e9212b8d074626775160e184328ac894a826ed Mon Sep 17 00:00:00 2001 From: Goffi Date: Mon, 26 Aug 2019 09:14:58 +0200 Subject: [PATCH] jp (common): fixed draft path use in BaseEdit --- sat_frontends/jp/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sat_frontends/jp/common.py b/sat_frontends/jp/common.py index 27900618..89545d0e 100644 --- a/sat_frontends/jp/common.py +++ b/sat_frontends/jp/common.py @@ -426,7 +426,7 @@ class BaseEdit(object): content_file_obj.seek(0, os.SEEK_END) elif self.args.draft_path: # there is an existing draft that we use - content_file_path = os.path.expanduser(self.args.item) + content_file_path = os.path.expanduser(self.args.draft_path) content_file_obj = open(content_file_path, "r+b") # we seek at the end for the same reason as above content_file_obj.seek(0, os.SEEK_END)