changeset 3037:d314d4181f30

jp (common): fixed draft path use in BaseEdit
author Goffi <goffi@goffi.org>
date Mon, 26 Aug 2019 09:14:58 +0200 (2019-08-26)
parents 3338c6a634f5
children 5f3068915686
files sat_frontends/jp/common.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat_frontends/jp/common.py	Sun Aug 25 12:16:18 2019 +0200
+++ b/sat_frontends/jp/common.py	Mon Aug 26 09:14:58 2019 +0200
@@ -426,7 +426,7 @@
             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)