commit f7d3a232a40ec93fec8c64f46fefba71a7fe9648 Author: Damian Johnson atagar@torproject.org Date: Sun May 5 18:22:56 2013 -0700
Handle relative targets in the DescriptorReader
The _handle_file() funciton expects to receive absolute paths so expanding relative inputs. This is a slight modification of wfn's patch from...
https://trac.torproject.org/8815 --- stem/descriptor/reader.py | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/stem/descriptor/reader.py b/stem/descriptor/reader.py index 18da11f..236c963 100644 --- a/stem/descriptor/reader.py +++ b/stem/descriptor/reader.py @@ -261,6 +261,10 @@ class DescriptorReader(object): else: self._targets = target
+ # expand any relative paths we got + + target = map(os.path.abspath, target) + self._validate = validate self._follow_links = follow_links self._persistence_path = persistence_path
tor-commits@lists.torproject.org