aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/types.py
diff options
context:
space:
mode:
authorMiroslav <ttahabatt@gmail.com>2018-04-26 01:35:44 +0300
committerMiroslav <ttahabatt@gmail.com>2018-04-26 01:35:44 +0300
commitea6fab09b5936ee2e1cb90a56f1e337679aefcff (patch)
treefaa0d5a07cd985ff8a4325e8a54a24a81d24f028 /mitmproxy/types.py
parent5546f0a05ec21db986f0639cee9e89452ba68642 (diff)
downloadmitmproxy-ea6fab09b5936ee2e1cb90a56f1e337679aefcff.tar.gz
mitmproxy-ea6fab09b5936ee2e1cb90a56f1e337679aefcff.tar.bz2
mitmproxy-ea6fab09b5936ee2e1cb90a56f1e337679aefcff.zip
Fix #3002. Auto-expanding
Diffstat (limited to 'mitmproxy/types.py')
-rw-r--r--mitmproxy/types.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/types.py b/mitmproxy/types.py
index 2d66bb8e..23320c12 100644
--- a/mitmproxy/types.py
+++ b/mitmproxy/types.py
@@ -178,7 +178,7 @@ class _PathType(_BaseType):
return ret
def parse(self, manager: _CommandBase, t: type, s: str) -> str:
- return s
+ return os.path.expanduser(s)
def is_valid(self, manager: _CommandBase, typ: typing.Any, val: typing.Any) -> bool:
return isinstance(val, str)