[tor-commits] [bridgedb/master] Expand ~s and get the abspath for proxy list files.

isis at torproject.org isis at torproject.org
Sun Jan 12 06:06:31 UTC 2014


commit ffe6effb616746e76547a3f0b80d4adbf28b52cb
Author: Isis Lovecruft <isis at torproject.org>
Date:   Tue Nov 5 06:06:26 2013 +0000

    Expand ~s and get the abspath for proxy list files.
---
 lib/bridgedb/Main.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/bridgedb/Main.py b/lib/bridgedb/Main.py
index 75e20b3..b949b00 100644
--- a/lib/bridgedb/Main.py
+++ b/lib/bridgedb/Main.py
@@ -217,8 +217,8 @@ def startup(cfg, options):
         if v:
             setattr(cfg, key, os.path.expanduser(v))
     if hasattr(cfg, "PROXY_LIST_FILES"):
-        cfg.PROXY_LIST_FILES = [
-            os.path.expanduser(v) for v in cfg.PROXY_LIST_FILES ]
+        cfg.PROXY_LIST_FILES = [os.path.abspath(os.path.expanduser(fn))
+                                for fn in cfg.PROXY_LIST_FILES]
     else:
         cfg.PROXY_LIST_FILES = []
 





More information about the tor-commits mailing list