|
|
@ -67,6 +67,7 @@ for source in sources: |
|
|
|
|
|
|
|
|
|
|
|
# form commnd-line for invoke injector |
|
|
|
# form commnd-line for invoke injector |
|
|
|
path = os.path.dirname(sys.argv[0]) |
|
|
|
path = os.path.dirname(sys.argv[0]) |
|
|
|
|
|
|
|
print 'adding hosts from: %s' % source_hostname |
|
|
|
sp_args = [path + '/py-i2phosts-injector', '-s', '-f', filename, '-d', 'Auto-added from ' + source_hostname] |
|
|
|
sp_args = [path + '/py-i2phosts-injector', '-s', '-f', filename, '-d', 'Auto-added from ' + source_hostname] |
|
|
|
p = subprocess.Popen(sp_args, shell=False, stdin=None, |
|
|
|
p = subprocess.Popen(sp_args, shell=False, stdin=None, |
|
|
|
stdout=None, stderr=subprocess.STDOUT) |
|
|
|
stdout=None, stderr=subprocess.STDOUT) |
|
|
|