Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scripts: cli: Fix blank spaces error in path name #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

scripts: cli: Fix blank spaces error in path name #60

wants to merge 1 commit into from

Conversation

humbertowanderley
Copy link

replacing blank spaces with "\ " fix cwd path error.

Signed-off-by: Humberto Wanderley [email protected]

scripts/cli.py Outdated
@@ -189,7 +189,7 @@ def check_env(self):
logging.info('Using KNoT base path: ' + self.knot_path)

# Get current working directory
self.cwd = os.getcwd()
self.cwd = os.getcwd().replace(" ","\ ")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

About commit message:
Replacing

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are you fixing? What is CWD?
Explain what was the problem. The commit message should explain at least what is the problem and what solves it.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spaces with "\ " character

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@humbertowanderley humbertowanderley changed the title scripts: cli: Fix cwd with blank spaces error scripts: cli: Fix blank spaces error in path name Sep 23, 2019
@ramonhpr ramonhpr requested a review from alla3 September 24, 2019 20:49
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 <[email protected]>
@ramonhpr ramonhpr self-requested a review October 19, 2019 14:19
@ramonhpr ramonhpr added the area: CLI Command line interface label Oct 22, 2019
@ramonhpr ramonhpr added this to the Sprint-49 milestone Oct 22, 2019
Copy link
Collaborator

@alla3 alla3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The build fails when building the core application. It tries to create the build folder using a path in the following format '<path-to-app-folder>'/build. Please, fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: CLI Command line interface priority: low
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants