forked from platformio/platformio-core
Fixed bug with platforms list
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
# Copyright (C) Ivan Kravets <me@ikravets.com>
|
# Copyright (C) Ivan Kravets <me@ikravets.com>
|
||||||
# See LICENSE for details.
|
# See LICENSE for details.
|
||||||
|
|
||||||
VERSION = (0, 4, 0)
|
VERSION = (1, 0, "0-dev")
|
||||||
__version__ = ".".join([str(s) for s in VERSION])
|
__version__ = ".".join([str(s) for s in VERSION])
|
||||||
|
|
||||||
__title__ = "platformio"
|
__title__ = "platformio"
|
||||||
|
@ -53,7 +53,7 @@ def get_project_config():
|
|||||||
def get_platforms():
|
def get_platforms():
|
||||||
platforms = []
|
platforms = []
|
||||||
for p in listdir(join(get_source_dir(), "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
|
continue
|
||||||
platforms.append(p[:-3])
|
platforms.append(p[:-3])
|
||||||
return platforms
|
return platforms
|
||||||
|
Reference in New Issue
Block a user