[tor-commits] [ooni-probe/master] Add hack to make import of txtorcon work

art at torproject.org art at torproject.org
Sat Jun 2 18:34:29 UTC 2012


commit b132993ed859b2c727edd2a6db08b08c011a8b29
Author: Arturo Filastò <hellais at torproject.org>
Date:   Sat Jun 2 14:05:49 2012 +0200

    Add hack to make import of txtorcon work
---
 ooni/lib/__init__.py |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/ooni/lib/__init__.py b/ooni/lib/__init__.py
new file mode 100644
index 0000000..fac7035
--- /dev/null
+++ b/ooni/lib/__init__.py
@@ -0,0 +1,9 @@
+import sys
+import os
+
+pwd = os.path.dirname(__file__)
+#child_path = os.path.normpath(os.path.join(pwd, '..'))
+#sys.path.append(child_path)
+sys.path.append(pwd)
+
+





More information about the tor-commits mailing list