|
|
@ -1,16 +1,23 @@
|
|
|
|
|
|
|
|
#!/usr/bin/python3
|
|
|
|
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
|
|
|
|
import sys
|
|
|
|
import sys
|
|
|
|
import launchpadlib
|
|
|
|
import launchpadlib
|
|
|
|
from launchpadlib.launchpad import Launchpad
|
|
|
|
from launchpadlib.launchpad import Launchpad
|
|
|
|
|
|
|
|
|
|
|
|
def no_credential():
|
|
|
|
def no_credential():
|
|
|
|
print("Can't proceed without Launchpad credentials.")
|
|
|
|
print("Can't proceed without Launchpad credentials.")
|
|
|
|
sys.exit()
|
|
|
|
sys.exit()
|
|
|
|
|
|
|
|
|
|
|
|
lp = Launchpad.login_with('Mass package bug subscription adder', 'production', credential_save_failed=no_credential)
|
|
|
|
lp = Launchpad.login_with('Mass package bug subscription adder', 'production', credential_save_failed=no_credential)
|
|
|
|
teamtowrite = (raw_input('What person/team would you like to use for this(ID not full name)? '))
|
|
|
|
teamtowrite = (raw_input('What person/team would you like to use for this(ID not full name)? '))
|
|
|
|
filepath = (raw_input('Please specify the path of the input file: '))
|
|
|
|
filepath = (raw_input('Please specify the path of the input file: '))
|
|
|
|
|
|
|
|
|
|
|
|
with open(filepath, "r") as ins:
|
|
|
|
with open(filepath, "r") as ins:
|
|
|
|
filearray = []
|
|
|
|
filearray = []
|
|
|
|
for line in ins:
|
|
|
|
for line in ins:
|
|
|
|
filearray.append(line.strip())
|
|
|
|
filearray.append(line.strip())
|
|
|
|
|
|
|
|
|
|
|
|
for i in range(len(filearray)):
|
|
|
|
for i in range(len(filearray)):
|
|
|
|
print("Assigning:")
|
|
|
|
print("Assigning:")
|
|
|
|
print(filearray[i])
|
|
|
|
print(filearray[i])
|
|
|
|