fix win32 tor launcher
This commit is contained in:
parent
8fcaca2862
commit
ff671141f5
1 changed files with 2 additions and 1 deletions
|
@ -25,6 +25,7 @@ logger = logging.getLogger(__name__)
|
||||||
class TorDaemon(Thread):
|
class TorDaemon(Thread):
|
||||||
installing = False
|
installing = False
|
||||||
running = True
|
running = True
|
||||||
|
p = None
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self._status = []
|
self._status = []
|
||||||
|
@ -48,7 +49,7 @@ CookieAuthentication 1
|
||||||
'''.strip())
|
'''.strip())
|
||||||
tor_data = os.path.join(settings.data_path, 'TorData')
|
tor_data = os.path.join(settings.data_path, 'TorData')
|
||||||
if sys.platform == 'win32':
|
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):
|
if not os.path.exists(torrc):
|
||||||
with open(torrc, 'w') as fd:
|
with open(torrc, 'w') as fd:
|
||||||
fd.write('''
|
fd.write('''
|
||||||
|
|
Loading…
Reference in a new issue