targets/toolchain_makefile.py
changeset 1543 61f0f31ef296
parent 1511 91538d0c242c
child 1549 f526fd97a7b0
--- a/targets/toolchain_makefile.py	Fri Oct 14 14:03:38 2016 +0300
+++ b/targets/toolchain_makefile.py	Fri Oct 14 18:04:22 2016 +0300
@@ -122,7 +122,10 @@
                               "buildpath": self.buildpath
                              }
             
-            command = [ token % beremizcommand for token in target.getCommand().split(' ')]
+            # clean sequence of multiple whitespaces 
+            cmd = re.sub(r"[ ]+", " ", target.getCommand())
+
+            command = [ token % beremizcommand for token in cmd.split(' ')]
 
             # Call Makefile to build PLC code and link it with target specific code
             status, result, err_result = ProcessLogger(self.CTRInstance.logger,