removed .xml from device type
This commit is contained in:
parent
cea56a299a
commit
383867e76a
1 changed files with 3 additions and 1 deletions
4
confGen
4
confGen
|
@ -25,6 +25,8 @@ print("NOKIA SIP PROV GENERATOR\nCopyright (C) 2021 Dovi Cowan\nThis program co
|
|||
|
||||
devices = os.listdir('templates/')
|
||||
|
||||
devices = [i.split('.', 1)[0] for i in devices]
|
||||
|
||||
args = argparse.ArgumentParser('./confGen', description="Generate provisioning files for Nokia SIP")
|
||||
args.add_argument('device', help="Device type", type=str, choices=devices)
|
||||
args.add_argument('--provName', help="Name for provisioning profile (default 'Nokia SIP')", type=str)
|
||||
|
@ -84,4 +86,4 @@ else:
|
|||
outputFile = 'config.prov'
|
||||
|
||||
prov = subprocess.Popen(["./libwbxml/bin/xml2wbxml", "-o"+outputFile, "-"], stdin=subprocess.PIPE, stdout=subprocess.PIPE)
|
||||
prov = prov.communicate(input=bytes(data))[0]
|
||||
prov = prov.communicate(input=bytes(data))[0]
|
||||
|
|
Loading…
Reference in a new issue