Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit ae7d2162ff7ecfe45520b065348ae79b6d1d2573 1 parent 3d2b7ad
@joonty authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.