Mercurial > libervia-backend
diff sat_frontends/jp/common.py @ 3037:d314d4181f30
jp (common): fixed draft path use in BaseEdit
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 26 Aug 2019 09:14:58 +0200 |
parents | ab2696e34d29 |
children | fee60f17ebac |
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)