[arm/master] Expand the path to save log

commit 64816a180a29797dad6d11f8649db08632670d6a Author: Sathyanarayanan Gunasekaran <gsathya.ceg@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)
participants (1)
-
atagar@torproject.org