Fix: list directories only.

This commit is contained in:
Francois Best 2014-04-09 20:01:02 +02:00
parent 50d32da96e
commit 14a2ff9ea0
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ class ArduinoMidiLibrary:
def getInstalledExamples(self): def getInstalledExamples(self):
exDir = os.path.join(self.path, 'examples') exDir = os.path.join(self.path, 'examples')
return [os.path.join(exDir, x, x + '.ino') for x in os.listdir(exDir)] return [os.path.join(exDir, x, x + '.ino') for x in next(os.walk(exDir))[1]]
def validate(self): def validate(self):
for board in Arduino.boards: for board in Arduino.boards: