[tor-commits] [arm/master] Expand the path to save log
atagar at torproject.org
atagar at torproject.org
Sat Jan 19 21:56:13 UTC 2013
commit 64816a180a29797dad6d11f8649db08632670d6a
Author: Sathyanarayanan Gunasekaran <gsathya.ceg at gmail.com>
Date: Sat Jan 19 19:39:58 2013 +0530
Expand the path to save log
Previously, saving to '~/foo.txt' would create a '~'
folder in pwd which wasn't intuitive. Now, the '~' is
expanded to the users $HOME dir.
---
src/cli/logPanel.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/cli/logPanel.py b/src/cli/logPanel.py
index b8a0c40..d85144c 100644
--- a/src/cli/logPanel.py
+++ b/src/cli/logPanel.py
@@ -808,7 +808,7 @@ class LogPanel(panel.Panel, threading.Thread, logging.Handler):
path - path where to save the log snapshot
"""
- path = os.path.abspath(path)
+ path = os.path.abspath(os.path.expanduser(path))
# make dir if the path doesn't already exist
baseDir = os.path.dirname(path)
More information about the tor-commits
mailing list