From ff671141f588b687a77dd1215b6df04dc201a326 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 20 Jan 2019 18:37:21 +0530 Subject: [PATCH] fix win32 tor launcher --- oml/tor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oml/tor.py b/oml/tor.py index f902b87..f7aa595 100644 --- a/oml/tor.py +++ b/oml/tor.py @@ -25,6 +25,7 @@ logger = logging.getLogger(__name__) class TorDaemon(Thread): installing = False running = True + p = None def __init__(self): self._status = [] @@ -48,7 +49,7 @@ CookieAuthentication 1 '''.strip()) tor_data = os.path.join(settings.data_path, 'TorData') if sys.platform == 'win32': - tor_data = os.path.normpath(tor_data).replace(os.SEP, '/') + tor_data = os.path.normpath(tor_data).replace('\\', '/') if not os.path.exists(torrc): with open(torrc, 'w') as fd: fd.write('''