Skip to content

Commit c21a371

Browse files
committed
Chages in desktop_service.py reagrding options management
1 parent e60316c commit c21a371

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

embasp/platforms/desktop/desktop_service.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,10 @@ def run(self):
5050
def start_sync(self, programs, options):
5151
"""Start a new process for the _exe_path and starts solving
5252
syncronously."""
53-
option = ""
53+
option = []
5454
for o in options:
5555
if o is not None:
56-
option += str(o.get_options())
57-
option += str(o.get_separator())
56+
option.append(str(o.get_options()))
5857
else:
5958
print("Warning : wrong " +
6059
str(OptionDescriptor().__class__.__name__))
@@ -73,19 +72,17 @@ def start_sync(self, programs, options):
7372
return Output("", "Error: executable not found")
7473

7574
exep = str(self._exe_path)
76-
opt = str(option)
7775

7876
lis = list()
7977
lis.append(exep)
80-
if opt != "":
81-
lis.append(opt)
78+
lis.extend(option)
8279
lis.extend(files_paths)
8380
if self._load_from_STDIN_option != "" and final_program != "":
8481
lis.append(self._load_from_STDIN_option)
8582

8683
print(exep + " ", end='')
87-
if opt != "":
88-
print(opt + " ", end='')
84+
if option != []:
85+
print(str(option) + " ", end='')
8986
for path in files_paths:
9087
print(path + " ", end='')
9188
if final_program != "":

0 commit comments

Comments
 (0)