mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Fix PlatformIO CLI
This commit is contained in:
@ -13,7 +13,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from os.path import dirname, join
|
from os.path import dirname
|
||||||
|
|
||||||
import click
|
import click
|
||||||
|
|
||||||
@ -30,7 +30,7 @@ class PlatformioCLI(click.MultiCommand):
|
|||||||
|
|
||||||
def list_commands(self, ctx):
|
def list_commands(self, ctx):
|
||||||
cmds = []
|
cmds = []
|
||||||
for filename in os.listdir(join(dirname(__file__), "commands")):
|
for filename in os.listdir(dirname(__file__)):
|
||||||
if filename.startswith("__init__"):
|
if filename.startswith("__init__"):
|
||||||
continue
|
continue
|
||||||
if filename.endswith(".py"):
|
if filename.endswith(".py"):
|
||||||
|
Reference in New Issue
Block a user