diff options
Diffstat (limited to 'jt')
-rwxr-xr-x | jt | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -113,7 +113,8 @@ class AttachCommand(Command): if len(args) < 2: raise cliapp.AppException('Usage: journal-note attach ID file...') - filename = self._app.draft_name(args[0]) + drafts_dir = DraftsDir(self._app.draft_dir()) + filename = drafts_dir.get_draft_pathname(args[0]) dirname, ext = os.path.splitext(filename) assert ext == '.mdwn' |