From 37a45bdad94cbca2c3994adaee8c4c87d0f960f7 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 18 Jan 2019 17:15:11 +0530 Subject: [PATCH] torrc uses / on windows --- oml/tor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oml/tor.py b/oml/tor.py index d9600e6..f902b87 100644 --- a/oml/tor.py +++ b/oml/tor.py @@ -47,6 +47,8 @@ ControlPort 9831 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, '/') if not os.path.exists(torrc): with open(torrc, 'w') as fd: fd.write('''