Skip to content
Browse files

Expand user in file paths for log files, fix #53

Use os.path.expanduser() to expand '~' to full user home paths.
  • Loading branch information...
1 parent 3d2b7ad commit ae7d2162ff7ecfe45520b065348ae79b6d1d2573 @joonty committed Mar 5, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 plugin/python/vdebug/log.py
View
3 plugin/python/vdebug/log.py
@@ -1,5 +1,6 @@
import time
import sys
+import os
class Logger:
""" Abstract class for all logger implementations.
@@ -64,7 +65,7 @@ class FileLogger(Logger):
only created if a message is written.
"""
def __init__(self,debug_level,filename):
- self.filename = filename
+ self.filename = os.path.expanduser(filename)
self.f = None
self.debug_level = int(debug_level)

0 comments on commit ae7d216

Please sign in to comment.
Something went wrong with that request. Please try again.