Browse Source

py-i2phosts-fetcher: assume that injector in PATH

pull/1/head
Hidden Z 14 years ago
parent
commit
94f885a7b8
  1. 3
      py-i2phosts-fetcher

3
py-i2phosts-fetcher

@ -104,9 +104,8 @@ for source in all_sources:
source.last_success = datetime.datetime.now() source.last_success = datetime.datetime.now()
source.save() source.save()
# form commnd-line for invoke injector # form commnd-line for invoke injector
path = os.path.dirname(sys.argv[0])
log.info('adding hosts from: %s', source.name) log.info('adding hosts from: %s', source.name)
sp_args = [path + '/py-i2phosts-injector', '-s', '-a', '-f', filename, '-d', sp_args = ['py-i2phosts-injector', '-s', '-a', '-f', filename, '-d',
'Auto-added from ' + source.name] 'Auto-added from ' + source.name]
p = subprocess.Popen(sp_args, shell=False, stdin=None, p = subprocess.Popen(sp_args, shell=False, stdin=None,
stdout=subprocess.PIPE, stderr=subprocess.STDOUT) stdout=subprocess.PIPE, stderr=subprocess.STDOUT)

Loading…
Cancel
Save