start tor in tor folder
This commit is contained in:
parent
31e05d0b5c
commit
de875a6cb4
1 changed files with 2 additions and 1 deletions
|
@ -81,9 +81,10 @@ DirReqStatistics 0
|
||||||
env = None
|
env = None
|
||||||
cmd = [tor, '--defaults-torrc', defaults, '-f', torrc, 'DataDirectory', tor_data]
|
cmd = [tor, '--defaults-torrc', defaults, '-f', torrc, 'DataDirectory', tor_data]
|
||||||
cmd += self.geoip(tor)
|
cmd += self.geoip(tor)
|
||||||
|
cwd = os.path.dirname(tor)
|
||||||
while self.running:
|
while self.running:
|
||||||
self.p = subprocess.Popen(cmd, stdout=subprocess.PIPE, bufsize=1,
|
self.p = subprocess.Popen(cmd, stdout=subprocess.PIPE, bufsize=1,
|
||||||
universal_newlines=True, start_new_session=True, env=env)
|
universal_newlines=True, start_new_session=True, env=env, cwd=cwd)
|
||||||
for line in self.p.stdout:
|
for line in self.p.stdout:
|
||||||
self._status.append(line)
|
self._status.append(line)
|
||||||
logger.debug(line)
|
logger.debug(line)
|
||||||
|
|
Loading…
Reference in a new issue