From 5c567dbe594e287be1231d22d3d64d8448a00ead Mon Sep 17 00:00:00 2001 From: Humberto Wanderley Date: Mon, 23 Sep 2019 16:42:50 -0300 Subject: [PATCH] scripts: cli: Fix blank spaces error in path name When building inside an application folder with blank space in the folder's name, a path error occurs. Using function 'quote' from shlex library fix this issue. Signed-off-by: Humberto Wanderley --- scripts/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/cli.py b/scripts/cli.py index fa0953d..0a2cb48 100755 --- a/scripts/cli.py +++ b/scripts/cli.py @@ -16,6 +16,7 @@ import logging import coloredlogs import serial.tools.list_ports +import shlex class Singleton(type): @@ -189,7 +190,7 @@ def check_env(self): logging.info('Using KNoT base path: ' + self.knot_path) # Get current working directory - self.cwd = os.getcwd() + self.cwd = shlex.quote(os.getcwd()) def __def_paths(self): """