Fixed bug with platforms list

This commit is contained in:
Ivan Kravets
2014-07-31 16:58:49 +03:00
parent 3f03143e5e
commit 1b2339c3bd
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# Copyright (C) Ivan Kravets <me@ikravets.com>
# See LICENSE for details.
VERSION = (0, 4, 0)
VERSION = (1, 0, "0-dev")
__version__ = ".".join([str(s) for s in VERSION])
__title__ = "platformio"

View File

@ -53,7 +53,7 @@ def get_project_config():
def get_platforms():
platforms = []
for p in listdir(join(get_source_dir(), "platforms")):
if p.startswith("_") or not p.endswith(".py"):
if p in ("__init__.py", "base.py") or not p.endswith(".py"):
continue
platforms.append(p[:-3])
return platforms