Commit 8ebabd43 authored by Jacek Sowiński's avatar Jacek Sowiński

Expand '~' sign to correct path value in `add -f`

parent 2627b952
...@@ -20,6 +20,7 @@ from datetime import date ...@@ -20,6 +20,7 @@ from datetime import date
import re import re
from sys import stdin from sys import stdin
import codecs import codecs
from os.path import expanduser
from topydo.lib.Config import config from topydo.lib.Config import config
from topydo.lib.Command import Command from topydo.lib.Command import Command
...@@ -43,7 +44,7 @@ class AddCommand(Command): ...@@ -43,7 +44,7 @@ class AddCommand(Command):
for opt, value in opts: for opt, value in opts:
if opt == '-f': if opt == '-f':
self.from_file = value self.from_file = expanduser(value)
self.args = args self.args = args
......
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