Configtool: find executables on Windows.

Probably no surprise for users of this platform, executables have
a .exe suffix :-)

This partially solves issue #158.
This commit is contained in:
Markus Hitter 2015-06-04 18:59:07 +02:00
parent 389dfdd3a1
commit 8b63505d53
1 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,9 @@ class ScriptTools:
self.settings = settings self.settings = settings
def figureCommandPath(self, baseCommand): def figureCommandPath(self, baseCommand):
if platform.startswith("win"):
baseCommand += ".exe"
if self.settings.arduinodir: if self.settings.arduinodir:
cmdpath = self.settings.arduinodir cmdpath = self.settings.arduinodir