I'm trying to compose a line of numbers each single digit taken from a variable eg: 1010001 each variable digit is either a 0 or 1 made from variable layer1 through 7. I need to add each layer variable to the last to compose the number with no commas or spaces and add it directly after the -p option in the show_command line
I used array and list and the commas mess up the command and inserting "pens" in the show command interpertes it literally instead of the list or array value?? The insert should look something like 1000110
Code:
pens = [layer1,layer2,layer3,layer4,layer5,layer6,layer7]
show_command = 'hp2xx -q -d75 -I -t -c1234567 -pINSERT HERE hpgl-hot-folder/temp.plot'
self.child = Popen(show_command, shell=True)
any ideas?
thanks