torrc uses / on windows
This commit is contained in:
parent
2d9f5446dc
commit
37a45bdad9
1 changed files with 2 additions and 0 deletions
|
@ -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('''
|
||||
|
|
Loading…
Reference in a new issue