This is the code I am using.
Code:
def init_combo(self):
recent = ResDir + '/combo_list.sh'
process = subprocess.Popen([recent], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
combo_list = process.communicate()[0]
for workspace in combo_list:
self.cmbWorkspaces.addItem(workspace)
The 'combo_list.sh' script returns directory paths one line at a time. My intent is to add each path to the combo box. Unfortunately, each character is getting added instead.
Any tips on how to get lines instead of characters from stdio into the combo box is appreciated.
Cheers,